<html>
<!-- 
  Copyright 2010 Scott Logic Ltd.
  http://www.scottlogic.co.uk
  
  This file is part of Closure Charts.

  Closure Charts is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  Closure Charts is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.
  
  You should have received a copy of the GNU General Public License
  along with Closure Charts.  If not, see <http://www.gnu.org/licenses/>.
-->
<head>
<title>JavaScript Charting Example</title>
<script type="text/javascript">
function g(a){throw a;}var i=true,l=null,o=false;function aa(){return function(a){return a}}function ba(){return function(){}}function ca(a){return function(){return this[a]}}var r,s=this;function da(){}
function ea(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array||!(a instanceof Object)&&Object.prototype.toString.call(a)=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(!(a instanceof Object)&&(Object.prototype.toString.call(a)=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("call")))return"function"}else return"null";
else if(b=="function"&&typeof a.call=="undefined")return"object";return b}function fa(a){return ea(a)=="array"}function ga(a){var b=ea(a);return b=="array"||b=="object"&&typeof a.length=="number"}function t(a){return typeof a=="string"}function u(a){return typeof a=="number"}function ha(a){return ea(a)=="function"}function ia(a){a=ea(a);return a=="object"||a=="array"||a=="function"}function ja(a){return a[ka]||(a[ka]=++la)}
var ka="closure_uid_"+Math.floor(Math.random()*2147483648).toString(36),la=0;function ma(a){return a.call.apply(a.bind,arguments)}function na(a,b){var c=b||s;if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(c,e)}}else return function(){return a.apply(c,arguments)}}
function oa(){oa=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?ma:na;return oa.apply(l,arguments)}var pa=Date.now||function(){return+new Date};function v(a,b){function c(){}c.prototype=b.prototype;a.l=b.prototype;a.prototype=new c;a.prototype.constructor=a};function qa(a){this.stack=Error().stack||"";if(a)this.message=String(a)}v(qa,Error);qa.prototype.name="CustomError";function ra(a){for(var b=1;b<arguments.length;b++){var c=String(arguments[b]).replace(/\$/g,"$$$$");a=a.replace(/\%s/,c)}return a}function sa(a,b){if(b)return a.replace(ta,"&amp;").replace(ua,"&lt;").replace(va,"&gt;").replace(wa,"&quot;");else{if(!xa.test(a))return a;if(a.indexOf("&")!=-1)a=a.replace(ta,"&amp;");if(a.indexOf("<")!=-1)a=a.replace(ua,"&lt;");if(a.indexOf(">")!=-1)a=a.replace(va,"&gt;");if(a.indexOf('"')!=-1)a=a.replace(wa,"&quot;");return a}}
var ta=/&/g,ua=/</g,va=/>/g,wa=/\"/g,xa=/[&<>\"]/;function w(a,b,c){a=c!==undefined?a.toFixed(c):String(a);c=a.indexOf(".");if(c==-1)c=a.length;return Array(Math.max(0,b-c)+1).join("0")+a}
function ya(a,b){for(var c=0,d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=String(b).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),f=Math.max(d.length,e.length),h=0;c==0&&h<f;h++){var j=d[h]||"",k=e[h]||"",m=RegExp("(\\d*)(\\D*)","g"),n=RegExp("(\\d*)(\\D*)","g");do{var q=m.exec(j)||["","",""],p=n.exec(k)||["","",""];if(q[0].length==0&&p[0].length==0)break;c=za(q[1].length==0?0:parseInt(q[1],10),p[1].length==0?0:parseInt(p[1],10))||za(q[2].length==0,p[2].length==0)||za(q[2],p[2])}while(c==
0)}return c}function za(a,b){if(a<b)return-1;else if(a>b)return 1;return 0}var Aa=Math.random()*2147483648|0;function Ba(a,b){b.unshift(a);qa.call(this,ra.apply(l,b));b.shift();this.Ke=a}v(Ba,qa);Ba.prototype.name="AssertionError";function x(a,b){if(!a){var c=Array.prototype.slice.call(arguments,2),d="Assertion failed";if(b){d+=": "+b;var e=c}g(new Ba(""+d,e||[]))}return a};function y(a,b,c,d,e,f){if(t(a)){this.w=a==Ca?b:0;this.t=a==Da?b:0;this.n=a==Ea?b:0;this.z=a==Fa?b:0;this.A=a==Ga?b:0;this.O=a==Ha?b:0}else{this.w=a||0;this.t=b||0;this.n=c||0;this.z=d||0;this.A=e||0;this.O=f||0}}
y.prototype.ob=function(a){var b=Math.min(this.w,this.t,this.n,this.z,this.A,this.O),c=Math.max(this.w,this.t,this.n,this.z,this.A,this.O);if(b<0&&c>0)return l;if(!a&&b==0&&c==0)return"PT0S";c=[];b<0&&c.push("-");c.push("P");if(this.w||a)c.push(Math.abs(this.w)+"Y");if(this.t||a)c.push(Math.abs(this.t)+"M");if(this.n||a)c.push(Math.abs(this.n)+"D");if(this.z||this.A||this.O||a){c.push("T");if(this.z||a)c.push(Math.abs(this.z)+"H");if(this.A||a)c.push(Math.abs(this.A)+"M");if(this.O||a)c.push(Math.abs(this.O)+
"S")}return c.join("")};y.prototype.va=function(a){return a.w==this.w&&a.t==this.t&&a.n==this.n&&a.z==this.z&&a.A==this.A&&a.O==this.O};y.prototype.ha=function(){return new y(this.w,this.t,this.n,this.z,this.A,this.O)};var Ca="y",Da="m",Ea="d",Fa="h",Ga="n",Ha="s";y.prototype.add=function(a){this.w+=a.w;this.t+=a.t;this.n+=a.n;this.z+=a.z;this.A+=a.A;this.O+=a.O};
function Ia(a,b,c){if(u(a)){this.b=new Date(a,b||0,c||1);Ja(this,c||1)}else if(ia(a)){this.b=new Date(a.getFullYear(),a.getMonth(),a.getDate());Ja(this,a.getDate())}else{this.b=new Date;this.b.setHours(0);this.b.setMinutes(0);this.b.setSeconds(0);this.b.setMilliseconds(0)}}r=Ia.prototype;r.Ha=0;r.Ia=3;r.ha=function(){var a=new Ia(this.b);a.Ha=this.Ha;a.Ia=this.Ia;return a};r.getFullYear=function(){return this.b.getFullYear()};r.getYear=function(){return this.getFullYear()};r.getMonth=function(){return this.b.getMonth()};
r.getDate=function(){return this.b.getDate()};r.getTime=function(){return this.b.getTime()};r.getDay=function(){return this.b.getDay()};r.getUTCFullYear=function(){return this.b.getUTCFullYear()};r.getUTCMonth=function(){return this.b.getUTCMonth()};r.getUTCDate=function(){return this.b.getUTCDate()};r.getUTCDay=function(){return this.b.getDay()};r.getUTCHours=function(){return this.b.getUTCHours()};r.getUTCMinutes=function(){return this.b.getUTCMinutes()};
function Ka(a){var b=a.getFullYear(),c=a.getMonth(),d=a.getDate();b=new Date(b,c,d);c=a.Ia||3;d=a.Ha||0;a=((b.getDay()+6)%7-d+7)%7;c=(c-d+7)%7;a=b.valueOf()+(c-a)*864E5;b=(new Date((new Date(a)).getFullYear(),0,1)).valueOf();return Math.floor(Math.round((a-b)/864E5)/7)+1}r.getTimezoneOffset=function(){return this.b.getTimezoneOffset()};function La(a){a=a.getTimezoneOffset();if(a==0)a="Z";else{var b=Math.abs(a)/60,c=Math.floor(b);a=(a>0?"-":"+")+w(c,2)+":"+w((b-c)*60,2)}return a}r.setFullYear=function(a){this.b.setFullYear(a)};
r.setMonth=function(a){this.b.setMonth(a)};r.setDate=function(a){this.b.setDate(a)};r.setUTCFullYear=function(a){this.b.setUTCFullYear(a)};r.setUTCMonth=function(a){this.b.setUTCMonth(a)};r.setUTCDate=function(a){this.b.setUTCDate(a)};
r.add=function(a){if(a.w||a.t){var b=this.getMonth()+a.t+a.w*12,c=this.getYear()+Math.floor(b/12);b%=12;if(b<0)b+=12;var d;a:{switch(b){case 1:d=c%4==0&&(c%100!=0||c%400==0)?29:28;break a;case 5:case 8:case 10:case 3:d=30;break a}d=31}d=Math.min(d,this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(d)}if(a.n){b=new Date(this.getYear(),this.getMonth(),this.getDate(),12);a=new Date(b.getTime()+a.n*864E5);this.setDate(1);this.setFullYear(a.getFullYear());this.setMonth(a.getMonth());
this.setDate(a.getDate());Ja(this,a.getDate())}};r.ob=function(a,b){return[this.getFullYear(),w(this.getMonth()+1,2),w(this.getDate(),2)].join(a?"-":"")+(b?La(this):"")};r.va=function(a){return this.getYear()==a.getYear()&&this.getMonth()==a.getMonth()&&this.getDate()==a.getDate()};r.toString=function(){return this.ob()};function Ja(a,b){if(a.getDate()!=b)a.b.setUTCHours(a.b.getUTCHours()+(a.getDate()<b?1:-1))}r.valueOf=function(){return this.b.valueOf()};
function z(a,b,c,d,e,f,h){this.b=u(a)?new Date(a,b||0,c||1,d||0,e||0,f||0,h||0):new Date(a?a.getTime():pa())}v(z,Ia);r=z.prototype;r.getHours=function(){return this.b.getHours()};r.getMinutes=function(){return this.b.getMinutes()};r.getSeconds=function(){return this.b.getSeconds()};r.getMilliseconds=function(){return this.b.getMilliseconds()};r.getUTCDay=function(){return this.b.getUTCDay()};r.getUTCHours=function(){return this.b.getUTCHours()};r.getUTCMinutes=function(){return this.b.getUTCMinutes()};
r.getUTCSeconds=function(){return this.b.getUTCSeconds()};r.getUTCMilliseconds=function(){return this.b.getUTCMilliseconds()};r.setHours=function(a){this.b.setHours(a)};r.setMinutes=function(a){this.b.setMinutes(a)};r.setSeconds=function(a){this.b.setSeconds(a)};r.setMilliseconds=function(a){this.b.setMilliseconds(a)};r.setUTCHours=function(a){this.b.setUTCHours(a)};r.setUTCMinutes=function(a){this.b.setUTCMinutes(a)};r.setUTCSeconds=function(a){this.b.setUTCSeconds(a)};r.setUTCMilliseconds=function(a){this.b.setUTCMilliseconds(a)};
r.add=function(a){Ia.prototype.add.call(this,a);a.z&&this.setHours(this.b.getHours()+a.z);a.A&&this.setMinutes(this.b.getMinutes()+a.A);a.O&&this.setSeconds(this.b.getSeconds()+a.O)};r.ob=function(a,b){var c=Ia.prototype.ob.call(this,a);if(a)return c+" "+w(this.getHours(),2)+":"+w(this.getMinutes(),2)+":"+w(this.getSeconds(),2)+(b?La(this):"");return c+"T"+w(this.getHours(),2)+w(this.getMinutes(),2)+w(this.getSeconds(),2)+(b?La(this):"")};r.va=function(a){return this.getTime()==a.getTime()};
r.toString=function(){return this.ob()};r.ha=function(){var a=new z(this.b);a.Ha=this.Ha;a.Ia=this.Ia;return a};function B(a,b,c,d,e,f,h){a=u(a)?Date.UTC(a,b||0,c||1,d||0,e||0,f||0,h||0):a?a.getTime():pa();this.b=new Date(a)}v(B,z);r=B.prototype;r.ha=function(){var a=new B(this.b);a.Ha=this.Ha;a.Ia=this.Ia;return a};r.add=function(a){if(a.w||a.t)Ia.prototype.add.call(this,new y(a.w,a.t));this.b=new Date(this.b.getTime()+1E3*(a.O+60*(a.A+60*(a.z+24*a.n))))};r.getTimezoneOffset=function(){return 0};r.getFullYear=z.prototype.getUTCFullYear;r.getMonth=z.prototype.getUTCMonth;r.getDate=z.prototype.getUTCDate;
r.getHours=z.prototype.getUTCHours;r.getMinutes=z.prototype.getUTCMinutes;r.getSeconds=z.prototype.getUTCSeconds;r.getMilliseconds=z.prototype.getUTCMilliseconds;r.getDay=z.prototype.getUTCDay;r.setFullYear=z.prototype.setUTCFullYear;r.setMonth=z.prototype.setUTCMonth;r.setDate=z.prototype.setUTCDate;r.setHours=z.prototype.setUTCHours;r.setMinutes=z.prototype.setUTCMinutes;r.setSeconds=z.prototype.setUTCSeconds;r.setMilliseconds=z.prototype.setUTCMilliseconds;function C(a,b){this.P=a;this.C=b};var D={wd:["BC","AD"],vd:["Before Christ","Anno Domini"],yd:["J","F","M","A","M","J","J","A","S","O","N","D"],Ed:["J","F","M","A","M","J","J","A","S","O","N","D"],xd:["January","February","March","April","May","June","July","August","September","October","November","December"],Dd:["January","February","March","April","May","June","July","August","September","October","November","December"],Ad:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Gd:["Jan","Feb","Mar","Apr","May",
"Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Jd:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Id:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Cd:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Hd:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ze:["S","M","T","W","T","F","S"],Fd:["S","M","T","W","T","F","S"],Bd:["Q1","Q2","Q3","Q4"],zd:["1st quarter","2nd quarter","3rd quarter","4th quarter"],ud:["AM","PM"],Dc:["EEEE, MMMM d, y","MMMM d, y","MMM d, y",
"M/d/yy"],Ec:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],we:{Md:"M/d",MMMMd:"MMMM d",MMMd:"MMM d"},xe:6,Ae:[5,6],ye:2};var E=Array.prototype,Ma=E.indexOf?function(a,b,c){x(a.length!=l);return E.indexOf.call(a,b,c)}:function(a,b,c){c=c==l?0:c<0?Math.max(0,a.length+c):c;if(t(a)){if(!t(b)||b.length!=1)return-1;return a.indexOf(b,c)}for(c=c;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Na=E.forEach?function(a,b,c){x(a.length!=l);E.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=t(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Oa=E.map?function(a,b,c){x(a.length!=l);return E.map.call(a,b,c)}:
function(a,b,c){for(var d=a.length,e=Array(d),f=t(a)?a.split(""):a,h=0;h<d;h++)if(h in f)e[h]=b.call(c,f[h],h,a);return e};function Pa(a,b){var c=Ma(a,b),d;if(d=c>=0){x(a.length!=l);E.splice.call(a,c,1)}return d}function Qa(){return E.concat.apply(E,arguments)}function Ra(a){if(fa(a))return Qa(a);else{for(var b=[],c=0,d=a.length;c<d;c++)b[c]=a[c];return b}}function Sa(a){x(a.length!=l);return E.splice.apply(a,Ta(arguments,1))}
function Ta(a,b,c){x(a.length!=l);return arguments.length<=2?E.slice.call(a,b):E.slice.call(a,b,c)}function Ua(a,b,c){c=c||Va;for(var d=0,e=a.length,f;d<e;){var h=d+e>>1,j;j=c(b,a[h]);if(j>0)d=h+1;else{e=h;f=!j}}return f?d:~d}function Va(a,b){return a>b?1:a<b?-1:0};function Wa(){}function Xa(a){if(typeof a=="number"){var b=new Wa;b.Qb=a;var c;c=a;if(c==0)c="Etc/GMT";else{var d=["Etc/GMT",c<0?"-":"+"];c=Math.abs(c);d.push(Math.floor(c/60)%100);c%=60;c!=0&&d.push(":",w(c,2));c=d.join("")}b.pd=c;a=a;if(a==0)a="UTC";else{c=["UTC",a<0?"+":"-"];a=Math.abs(a);c.push(Math.floor(a/60)%100);a%=60;a!=0&&c.push(":",a);a=c.join("")}b.Bc=[a,a];b.Tb=[];return b}b=new Wa;b.pd=a.id;b.Qb=-a.std_offset;b.Bc=a.names;b.Tb=a.transitions;return b}
function Ya(a,b){for(var c=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5,d=0;d<a.Tb.length&&c>=a.Tb[d];)d+=2;return d==0?0:a.Tb[d-1]};function Za(a){x(a!==undefined,"Pattern must be defined");this.Lb=[];typeof a=="number"?$a(this,a):ab(this,a)}var bb=[/^\'(?:[^\']|\'\')*\'/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvzZ]+/];function ab(a,b){for(;b;)for(var c=0;c<bb.length;++c){var d=b.match(bb[c]);if(d){d=d[0];b=b.substring(d.length);if(c==0)if(d=="''")d="'";else{d=d.substring(1,d.length-1);d=d.replace(/\'\'/,"'")}a.Lb.push({text:d,type:c});break}}}
Za.prototype.Td=function(a,b){var c=b?(a.getTimezoneOffset()-(b.Qb-Ya(b,a)))*6E4:0,d=c?new Date(a.getTime()+c):a,e=d;if(b&&d.getTimezoneOffset()!=a.getTimezoneOffset()){c+=c>0?-864E5:864E5;e=new Date(a.getTime()+c)}c=[];for(var f=0;f<this.Lb.length;++f){var h=this.Lb[f].text;1==this.Lb[f].type?c.push(cb(this,h,a,d,e,b)):c.push(h)}return c.join("")};function $a(a,b){var c;if(b<4)c=D.Dc[b];else if(b<8)c=D.Ec[b-4];else if(b<12)c=D.Dc[b-8]+" "+D.Ec[b-8];else{$a(a,10);return}ab(a,c)}
function cb(a,b,c,d,e,f){a=b.length;switch(b.charAt(0)){case "G":c=d.getFullYear()>0?1:0;return a>=4?D.vd[c]:D.wd[c];case "y":c=d.getFullYear();if(c<0)c=-c;return a==2?w(c%100,2):String(c);case "M":a:{c=d.getMonth();switch(a){case 5:a=D.yd[c];break a;case 4:a=D.xd[c];break a;case 3:a=D.Ad[c];break a;default:a=w(c+1,a)}}return a;case "k":return w(e.getHours()||24,a);case "S":return(e.getTime()%1E3/1E3).toFixed(Math.min(3,a)).substr(2)+(a>3?w(0,a-3):"");case "E":c=d.getDay();return a>=4?D.Jd[c]:D.Cd[c];
case "a":a=e.getHours();return D.ud[a>=12&&a<24?1:0];case "h":return w(e.getHours()%12||12,a);case "K":return w(e.getHours()%12,a);case "H":return w(e.getHours(),a);case "c":a:{c=d.getDay();switch(a){case 5:a=D.Fd[c];break a;case 4:a=D.Id[c];break a;case 3:a=D.Hd[c];break a;default:a=w(c,1)}}return a;case "L":a:{c=d.getMonth();switch(a){case 5:a=D.Ed[c];break a;case 4:a=D.Dd[c];break a;case 3:a=D.Gd[c];break a;default:a=w(c+1,a)}}return a;case "Q":c=Math.floor(d.getMonth()/3);return a<4?D.Bd[c]:D.zd[c];
case "d":return w(d.getDate(),a);case "m":return w(e.getMinutes(),a);case "s":return w(e.getSeconds(),a);case "v":a=f||Xa(c.getTimezoneOffset());return a.pd;case "z":b=f||Xa(c.getTimezoneOffset());return a<4?b.Bc[Ya(b,c)>0?2:0]:b.Bc[Ya(b,c)>0?3:1];case "Z":b=f||Xa(c.getTimezoneOffset());if(a<4){a=-(b.Qb-Ya(b,c));c=[a<0?"-":"+"];a=Math.abs(a);c.push(w(Math.floor(a/60)%100,2),w(a%60,2));a=c.join("")}else{a=b.Qb-Ya(b,c);c=["GMT"];c.push(a<=0?"+":"-");a=Math.abs(a);c.push(w(Math.floor(a/60)%100,2),":",
w(a%60,2));a=c.join("")}return a;default:return""}};function F(a){return a*Math.PI/180};var db=/#(.)(.)(.)/;function eb(a){a=a;if(!fb.test(a))g(Error("'"+a+"' is not a valid hex color"));if(a.length==4)a=a.replace(db,"#$1$1$2$2$3$3");a=a.toLowerCase();return[parseInt(a.substr(1,2),16),parseInt(a.substr(3,2),16),parseInt(a.substr(5,2),16)]}
function gb(a,b,c){a=Number(a);b=Number(b);c=Number(c);if(isNaN(a)||a<0||a>255||isNaN(b)||b<0||b>255||isNaN(c)||c<0||c>255)g(Error('"('+a+","+b+","+c+'") is not a valid RGB color'));a=hb(a.toString(16));b=hb(b.toString(16));c=hb(c.toString(16));return"#"+a+b+c}var fb=/^#(?:[0-9a-f]{3}){1,2}$/i;function hb(a){return a.length==1?"0"+a:a}
function ib(a,b){var c=[255,255,255],d;d=Math.min(Math.max(b,0),1);return[Math.round(d*c[0]+(1-d)*a[0]),Math.round(d*c[1]+(1-d)*a[1]),Math.round(d*c[2]+(1-d)*a[2])]};var jb,kb,lb,mb,nb;function ob(){return s.navigator?s.navigator.userAgent:l}nb=mb=lb=kb=jb=o;var pb;if(pb=ob()){var qb=s.navigator;jb=pb.indexOf("Opera")==0;kb=!jb&&pb.indexOf("MSIE")!=-1;mb=(lb=!jb&&pb.indexOf("WebKit")!=-1)&&pb.indexOf("Mobile")!=-1;nb=!jb&&!lb&&qb.product=="Gecko"}var rb=jb,G=kb,sb=nb,tb=lb,ub=mb,vb=s.navigator,wb=(vb&&vb.platform||"").indexOf("Mac")!=-1,xb;
a:{var yb="",zb;if(rb&&s.opera){var Ab=s.opera.version;yb=typeof Ab=="function"?Ab():Ab}else{if(sb)zb=/rv\:([^\);]+)(\)|;)/;else if(G)zb=/MSIE\s+([^\);]+)(\)|;)/;else if(tb)zb=/WebKit\/(\S+)/;if(zb){var Bb=zb.exec(ob());yb=Bb?Bb[1]:""}}if(G){var Cb,Db=s.document;Cb=Db?Db.documentMode:undefined;if(Cb>parseFloat(yb)){xb=String(Cb);break a}}xb=yb}var Eb={};function Fb(a){return Eb[a]||(Eb[a]=ya(xb,a)>=0)};var Gb,Hb=!G||Fb("9");G&&Fb("9");function Ib(a){var b;b=(b=a.className)&&typeof b.split=="function"?b.split(/\s+/):[];var c;c=Ta(arguments,1);for(var d=0,e=0;e<c.length;e++)if(!(Ma(b,c[e])>=0)){b.push(c[e]);d++}c=d==c.length;a.className=b.join(" ");return c};function H(a,b){this.x=a!==undefined?a:0;this.y=b!==undefined?b:0}H.prototype.ha=function(){return new H(this.x,this.y)};H.prototype.toString=function(){return"("+this.x+", "+this.y+")"};function I(a,b){this.width=a;this.height=b}r=I.prototype;r.ha=function(){return new I(this.width,this.height)};r.toString=function(){return"("+this.width+" x "+this.height+")"};r.Db=function(){return!(this.width*this.height)};r.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};r.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
r.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};r.scale=function(a){this.width*=a;this.height*=a;return this};function Jb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Kb(a,b){var c;if(c=b in a)delete a[b];return c}var Lb=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];function Mb(a){for(var b,c,d=1;d<arguments.length;d++){c=arguments[d];for(b in c)a[b]=c[b];for(var e=0;e<Lb.length;e++){b=Lb[e];if(Object.prototype.hasOwnProperty.call(c,b))a[b]=c[b]}}};function Nb(a){return a?new Ob(Pb(a)):Gb||(Gb=new Ob)}function Qb(a,b){Jb(b,function(c,d){if(d=="style")a.style.cssText=c;else if(d=="class")a.className=c;else if(d=="for")a.htmlFor=c;else if(d in Rb)a.setAttribute(Rb[d],c);else a[d]=c})}var Rb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",type:"type"};function Sb(){return Tb(document,arguments)}
function Tb(a,b){var c=b[0],d=b[1];if(!Hb&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',sa(d.name),'"');if(d.type){c.push(' type="',sa(d.type),'"');var e={};Mb(e,d);d=e;delete d.type}c.push(">");c=c.join("")}c=a.createElement(c);if(d)if(t(d))c.className=d;else fa(d)?Ib.apply(l,[c].concat(d)):Qb(c,d);b.length>2&&Ub(a,c,b,2);return c}
function Ub(a,b,c,d){function e(h){if(h)b.appendChild(t(h)?a.createTextNode(h):h)}for(d=d;d<c.length;d++){var f=c[d];ga(f)&&!(ia(f)&&f.nodeType>0)?Na(Vb(f)?Ra(f):f,e):e(f)}}function Wb(a){for(var b;b=a.firstChild;)a.removeChild(b)}function Xb(a){return a&&a.parentNode?a.parentNode.removeChild(a):l}function Pb(a){return a.nodeType==9?a:a.ownerDocument||a.document}
function Vb(a){if(a&&typeof a.length=="number")if(ia(a))return typeof a.item=="function"||typeof a.item=="string";else if(ha(a))return typeof a.item=="function";return o}function Ob(a){this.X=a||s.document||document}r=Ob.prototype;r.c=function(a){return t(a)?this.X.getElementById(a):a};r.T=function(){return Tb(this.X,arguments)};r.createElement=function(a){return this.X.createElement(a)};r.createTextNode=function(a){return this.X.createTextNode(a)};
function Yb(a){a=!tb&&a.X.compatMode=="CSS1Compat"?a.X.documentElement:a.X.body;return new H(a.scrollLeft,a.scrollTop)}r.appendChild=function(a,b){a.appendChild(b)};r.removeNode=Xb;r.contains=function(a,b){if(a.contains&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};var Zb;!G||Fb("9");G&&Fb("8");function J(){}J.prototype.Oc=o;J.prototype.ia=function(){if(!this.Oc){this.Oc=i;this.g()}};J.prototype.g=ba();function K(a,b){this.type=a;this.currentTarget=this.target=b}v(K,J);K.prototype.g=function(){delete this.type;delete this.target;delete this.currentTarget};K.prototype.Ya=o;K.prototype.Nb=i;function $b(a,b){a&&this.Ab(a,b)}v($b,K);r=$b.prototype;r.target=l;r.relatedTarget=l;r.offsetX=0;r.offsetY=0;r.clientX=0;r.clientY=0;r.screenX=0;r.screenY=0;r.button=0;r.keyCode=0;r.charCode=0;r.ctrlKey=o;r.altKey=o;r.shiftKey=o;r.metaKey=o;r.ie=o;r.Qc=l;
r.Ab=function(a,b){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(sb)try{d=d.nodeName&&d}catch(e){d=l}}else if(c=="mouseover")d=a.fromElement;else if(c=="mouseout")d=a.toElement;this.relatedTarget=d;this.offsetX=a.offsetX!==undefined?a.offsetX:a.layerX;this.offsetY=a.offsetY!==undefined?a.offsetY:a.layerY;this.clientX=a.clientX!==undefined?a.clientX:a.pageX;this.clientY=a.clientY!==undefined?a.clientY:a.pageY;this.screenX=a.screenX||0;
this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.ie=wb?a.metaKey:a.ctrlKey;this.pe=a.pe;this.Qc=a;delete this.Nb;delete this.Ya};r.g=function(){$b.l.g.call(this);this.relatedTarget=this.currentTarget=this.target=this.Qc=l};function ac(){}var bc=0;r=ac.prototype;r.key=0;r.Za=o;r.Gc=o;r.Ab=function(a,b,c,d,e,f){if(ha(a))this.Zc=i;else if(a&&a.handleEvent&&ha(a.handleEvent))this.Zc=o;else g(Error("Invalid listener argument"));this.Xa=a;this.hd=b;this.src=c;this.type=d;this.capture=!!e;this.yb=f;this.Gc=o;this.key=++bc;this.Za=o};r.handleEvent=function(a){if(this.Zc)return this.Xa.call(this.yb||this.src,a);return this.Xa.handleEvent.call(this.Xa,a)};function L(a,b){this.cd=b;this.Ja=[];if(a>this.cd)g(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));for(var c=0;c<a;c++)this.Ja.push(this.ua?this.ua():{})}v(L,J);L.prototype.ua=l;L.prototype.Nc=l;function cc(a){if(a.Ja.length)return a.Ja.pop();return a.ua?a.ua():{}}function dc(a,b){a.Ja.length<a.cd?a.Ja.push(b):ec(a,b)}function ec(a,b){if(a.Nc)a.Nc(b);else if(ia(b))if(ha(b.ia))b.ia();else for(var c in b)delete b[c]}
L.prototype.g=function(){L.l.g.call(this);for(var a=this.Ja;a.length;)ec(this,a.pop());delete this.Ja};var fc;var gc=(fc="ScriptEngine"in s&&s.ScriptEngine()=="JScript")?s.ScriptEngineMajorVersion()+"."+s.ScriptEngineMinorVersion()+"."+s.ScriptEngineBuildVersion():"0";var hc,ic,jc,kc,lc,mc,nc,oc,pc,qc,rc;
(function(){function a(){return{k:0,ea:0}}function b(){return[]}function c(){function p(A){return h.call(p.src,p.key,A)}return p}function d(){return new ac}function e(){return new $b}var f=fc&&!(ya(gc,"5.7")>=0),h;mc=function(p){h=p};if(f){hc=function(){return cc(j)};ic=function(p){dc(j,p)};jc=function(){return cc(k)};kc=function(p){dc(k,p)};lc=function(){return cc(m)};nc=function(){dc(m,c())};oc=function(){return cc(n)};pc=function(p){dc(n,p)};qc=function(){return cc(q)};rc=function(p){dc(q,p)};
var j=new L(0,600);j.ua=a;var k=new L(0,600);k.ua=b;var m=new L(0,600);m.ua=c;var n=new L(0,600);n.ua=d;var q=new L(0,600);q.ua=e}else{hc=a;ic=da;jc=b;kc=da;lc=c;nc=da;oc=d;pc=da;qc=e;rc=da}})();var sc={},M={},N={},tc={};
function uc(a,b,c,d,e){if(b)if(fa(b)){for(var f=0;f<b.length;f++)uc(a,b[f],c,d,e);return l}else{d=!!d;var h=M;b in h||(h[b]=hc());h=h[b];if(!(d in h)){h[d]=hc();h.k++}h=h[d];var j=ja(a),k;h.ea++;if(h[j]){k=h[j];for(f=0;f<k.length;f++){h=k[f];if(h.Xa==c&&h.yb==e){if(h.Za)break;return k[f].key}}}else{k=h[j]=jc();h.k++}f=lc();f.src=a;h=oc();h.Ab(c,f,a,b,d,e);c=h.key;f.key=c;k.push(h);sc[c]=h;N[j]||(N[j]=jc());N[j].push(h);if(a.addEventListener){if(a==s||!a.Zb)a.addEventListener(b,f,d)}else a.attachEvent(vc(b),
f);return c}else g(Error("Invalid event type"))}function wc(a,b,c,d,e){if(fa(b)){for(var f=0;f<b.length;f++)wc(a,b[f],c,d,e);return l}d=!!d;a=xc(a,b,d);if(!a)return o;for(f=0;f<a.length;f++)if(a[f].Xa==c&&a[f].capture==d&&a[f].yb==e)return yc(a[f].key);return o}
function yc(a){if(!sc[a])return o;var b=sc[a];if(b.Za)return o;var c=b.src,d=b.type,e=b.hd,f=b.capture;if(c.removeEventListener){if(c==s||!c.Zb)c.removeEventListener(d,e,f)}else c.detachEvent&&c.detachEvent(vc(d),e);c=ja(c);e=M[d][f][c];if(N[c]){var h=N[c];Pa(h,b);h.length==0&&delete N[c]}b.Za=i;e.dd=i;zc(d,f,c,e);delete sc[a];return i}
function zc(a,b,c,d){if(!d.Fb)if(d.dd){for(var e=0,f=0;e<d.length;e++)if(d[e].Za){var h=d[e].hd;h.src=l;nc(h);pc(d[e])}else{if(e!=f)d[f]=d[e];f++}d.length=f;d.dd=o;if(f==0){kc(d);delete M[a][b][c];M[a][b].k--;if(M[a][b].k==0){ic(M[a][b]);delete M[a][b];M[a].k--}if(M[a].k==0){ic(M[a]);delete M[a]}}}}
function Ac(a,b,c){var d=0,e=b==l,f=c==l;c=!!c;if(a==l)Jb(N,function(k){for(var m=k.length-1;m>=0;m--){var n=k[m];if((e||b==n.type)&&(f||c==n.capture)){yc(n.key);d++}}});else{a=ja(a);if(N[a]){a=N[a];for(var h=a.length-1;h>=0;h--){var j=a[h];if((e||b==j.type)&&(f||c==j.capture)){yc(j.key);d++}}}}return d}function xc(a,b,c){var d=M;if(b in d){d=d[b];if(c in d){d=d[c];a=ja(a);if(d[a])return d[a]}}return l}function vc(a){if(a in tc)return tc[a];return tc[a]="on"+a}
function Bc(a,b,c,d,e){var f=1;b=ja(b);if(a[b]){a.ea--;a=a[b];if(a.Fb)a.Fb++;else a.Fb=1;try{for(var h=a.length,j=0;j<h;j++){var k=a[j];if(k&&!k.Za)f&=Cc(k,e)!==o}}finally{a.Fb--;zc(c,d,b,a)}}return Boolean(f)}function Cc(a,b){var c=a.handleEvent(b);a.Gc&&yc(a.key);return c}
mc(function(a,b){if(!sc[a])return i;var c=sc[a],d=c.type,e=M;if(!(d in e))return i;e=e[d];var f,h;if(Zb===undefined)Zb=G&&!s.addEventListener;if(Zb){var j;if(!(j=b))a:{j="window.event".split(".");for(var k=s;f=j.shift();)if(k[f])k=k[f];else{j=l;break a}j=k}f=j;j=i in e;k=o in e;if(j){if(f.keyCode<0||f.returnValue!=undefined)return i;a:{var m=o;if(f.keyCode==0)try{f.keyCode=-1;break a}catch(n){m=i}if(m||f.returnValue==undefined)f.returnValue=i}}m=qc();m.Ab(f,this);f=i;try{if(j){for(var q=jc(),p=m.currentTarget;p;p=
p.parentNode)q.push(p);h=e[i];h.ea=h.k;for(var A=q.length-1;!m.Ya&&A>=0&&h.ea;A--){m.currentTarget=q[A];f&=Bc(h,q[A],d,i,m)}if(k){h=e[o];h.ea=h.k;for(A=0;!m.Ya&&A<q.length&&h.ea;A++){m.currentTarget=q[A];f&=Bc(h,q[A],d,o,m)}}}else f=Cc(c,m)}finally{if(q){q.length=0;kc(q)}m.ia();rc(m)}return f}d=new $b(b,this);try{f=Cc(c,d)}finally{d.ia()}return f});function O(){this.G=[];this.k=[];this.sa=[]}O.prototype.Ua=l;O.prototype.U=l;O.prototype.$a=i;var Dc=[];Dc[0]=2;Dc[1]=2;Dc[2]=6;Dc[3]=6;Dc[4]=0;r=O.prototype;r.clear=function(){this.G.length=0;this.k.length=0;this.sa.length=0;delete this.Ua;delete this.U;delete this.$a;return this};r.moveTo=function(a,b){if(this.G[this.G.length-1]==0)this.sa.length-=2;else{this.G.push(0);this.k.push(1)}this.sa.push(a,b);this.U=this.Ua=[a,b];return this};
r.lineTo=function(){var a=this.G[this.G.length-1];if(a==l)g(Error("Path cannot start with lineTo"));if(a!=1){this.G.push(1);this.k.push(0)}for(a=0;a<arguments.length;a+=2){var b=arguments[a],c=arguments[a+1];this.sa.push(b,c)}this.k[this.k.length-1]+=a/2;this.U=[b,c];return this};
r.Hc=function(){var a=this.G[this.G.length-1];if(a==l)g(Error("Path cannot start with curve"));if(a!=2){this.G.push(2);this.k.push(0)}for(a=0;a<arguments.length;a+=6){var b=arguments[a+4],c=arguments[a+5];this.sa.push(arguments[a],arguments[a+1],arguments[a+2],arguments[a+3],b,c)}this.k[this.k.length-1]+=a/6;this.U=[b,c];return this};r.close=function(){var a=this.G[this.G.length-1];if(a==l)g(Error("Path cannot start with close"));if(a!=4){this.G.push(4);this.k.push(1);this.U=this.Ua}return this};
r.arcTo=function(a,b,c,d){var e=this.U[0]-a*Math.cos(F(c))+a*Math.cos(F(c+d)),f=this.U[1]-b*Math.sin(F(c))+b*Math.sin(F(c+d));this.G.push(3);this.k.push(1);this.sa.push(a,b,c,d,e,f);this.$a=o;this.U=[e,f];return this};
r.Ld=function(a,b,c,d){var e=this.U[0]-a*Math.cos(F(c)),f=this.U[1]-b*Math.sin(F(c)),h=F(d);d=Math.ceil(Math.abs(h)/Math.PI*2);h=h/d;c=F(c);for(var j=0;j<d;j++){var k=Math.cos(c),m=Math.sin(c),n=4/3*Math.sin(h/2)/(1+Math.cos(h/2)),q=e+(k-n*m)*a,p=f+(m+n*k)*b;c+=h;k=Math.cos(c);m=Math.sin(c);this.Hc(q,p,e+(k+n*m)*a,f+(m-n*k)*b,e+k*a,f+m*b)}return this};function Ec(a,b){for(var c=a.sa,d=0,e=0,f=a.G.length;e<f;e++){var h=a.G[e],j=Dc[h]*a.k[e];b(h,c.slice(d,d+j));d+=j}}
r.ha=function(){var a=new this.constructor;a.G=this.G.concat();a.k=this.k.concat();a.sa=this.sa.concat();a.Ua=this.Ua&&this.Ua.concat();a.U=this.U&&this.U.concat();a.$a=this.$a;return a};var Fc={};Fc[0]=O.prototype.moveTo;Fc[1]=O.prototype.lineTo;Fc[4]=O.prototype.close;Fc[2]=O.prototype.Hc;Fc[3]=O.prototype.Ld;function Gc(a){if(a.$a)return a.ha();var b=new O;Ec(a,function(c,d){Fc[c].apply(b,d)});return b}O.prototype.Db=function(){return this.G.length==0};function P(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}P.prototype.ha=function(){return new P(this.left,this.top,this.width,this.height)};P.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};P.prototype.contains=function(a){return a instanceof P?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};function Hc(a,b){var c;a:{c=Pb(a);if(c.defaultView&&c.defaultView.getComputedStyle)if(c=c.defaultView.getComputedStyle(a,l)){c=c[b]||c.getPropertyValue(b);break a}c=""}return c||(a.currentStyle?a.currentStyle[b]:l)||a.style[b]}function Ic(a){var b=a.getBoundingClientRect();if(G){a=a.ownerDocument;b.left-=a.documentElement.clientLeft+a.body.clientLeft;b.top-=a.documentElement.clientTop+a.body.clientTop}return b}
function Jc(a){if(G)return a.offsetParent;var b=Pb(a),c=Hc(a,"position"),d=c=="fixed"||c=="absolute";for(a=a.parentNode;a&&a!=b;a=a.parentNode){c=Hc(a,"position");d=d&&c=="static"&&a!=b.documentElement&&a!=b.body;if(!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c=="fixed"||c=="absolute"))return a}return l}function Kc(a,b,c){if(b instanceof I){c=b.height;b=b.width}else{if(c==undefined)g(Error("missing height argument"));c=c}a.style.width=Lc(b,i);a.style.height=Lc(c,i)}
function Lc(a,b){if(typeof a=="number")a=(b?Math.round(a):a)+"px";return a}
function Mc(a){var b=rb&&!Fb("10");if(Hc(a,"display")!="none")return b?new I(a.offsetWidth||a.clientWidth,a.offsetHeight||a.clientHeight):new I(a.offsetWidth,a.offsetHeight);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";if(b){b=a.offsetWidth||a.clientWidth;a=a.offsetHeight||a.clientHeight}else{b=a.offsetWidth;a=a.offsetHeight}c.display=d;c.position=f;c.visibility=e;return new I(b,a)};function Nc(a){this.Ka=a}v(Nc,J);var Oc=new L(0,100);function Pc(a,b,c,d,e,f){if(fa(c))for(var h=0;h<c.length;h++)Pc(a,b,c[h],d,e,f);else{b=uc(b,c,d||a,e||o,f||a.Ka||a);if(a.L)a.L[b]=i;else if(a.Ca){a.L=cc(Oc);a.L[a.Ca]=i;a.Ca=l;a.L[b]=i}else a.Ca=b}return a}
function Qc(a,b,c,d,e,f){if(a.Ca||a.L)if(fa(c))for(var h=0;h<c.length;h++)Qc(a,b,c[h],d,e,f);else{a:{d=d||a;f=f||a.Ka||a;e=!!e;if(b=xc(b,c,e))for(c=0;c<b.length;c++)if(b[c].Xa==d&&b[c].capture==e&&b[c].yb==f){b=b[c];break a}b=l}if(b){b=b.key;yc(b);if(a.L)Kb(a.L,b);else if(a.Ca==b)a.Ca=l}}return a}function Rc(a){if(a.L){for(var b in a.L){yc(b);delete a.L[b]}dc(Oc,a.L);a.L=l}else a.Ca&&yc(a.Ca)}Nc.prototype.g=function(){Nc.l.g.call(this);Rc(this)};Nc.prototype.handleEvent=function(){g(Error("EventHandler.handleEvent not implemented"))};function Sc(){}v(Sc,J);r=Sc.prototype;r.Zb=i;r.Kb=l;r.vc=function(a){this.Kb=a};r.addEventListener=function(a,b,c,d){uc(this,a,b,c,d)};r.removeEventListener=function(a,b,c,d){wc(this,a,b,c,d)};
r.dispatchEvent=function(a){a=a;if(t(a))a=new K(a,this);else if(a instanceof K)a.target=a.target||this;else{var b=a;a=new K(a.type,this);Mb(a,b)}b=1;var c,d=a.type,e=M;if(d in e){e=e[d];d=i in e;var f;if(d){c=[];for(f=this;f;f=f.Kb)c.push(f);f=e[i];f.ea=f.k;for(var h=c.length-1;!a.Ya&&h>=0&&f.ea;h--){a.currentTarget=c[h];b&=Bc(f,c[h],a.type,i,a)&&a.Nb!=o}}if(o in e){f=e[o];f.ea=f.k;if(d)for(h=0;!a.Ya&&h<c.length&&f.ea;h++){a.currentTarget=c[h];b&=Bc(f,c[h],a.type,o,a)&&a.Nb!=o}else for(c=this;!a.Ya&&
c&&f.ea;c=c.Kb){a.currentTarget=c;b&=Bc(f,c,a.type,o,a)&&a.Nb!=o}}a=Boolean(b)}else a=i;return a};r.g=function(){Sc.l.g.call(this);Ac(this);this.Kb=l};function Tc(){}(function(a){a.Tc=function(){return a.$d||(a.$d=new a)}})(Tc);Tc.prototype.he=0;Tc.Tc();function Q(a){this.ja=a||Nb();this.ne=Uc}v(Q,Sc);Q.prototype.Yd=Tc.Tc();var Uc=l;r=Q.prototype;r.Ba=l;r.M=o;r.j=l;r.ne=l;r.ge=l;r.pa=l;r.ga=l;r.pb=l;r.re=o;r.c=ca("j");r.vc=function(a){if(this.pa&&this.pa!=a)g(Error("Method not supported"));Q.l.vc.call(this,a)};r.T=function(){this.j=this.ja.createElement("div")};function Vc(a,b,c){if(a.M)g(Error("Component already rendered"));a.j||a.T();b?b.insertBefore(a.j,c||l):a.ja.X.body.appendChild(a.j);if(!a.pa||a.pa.M)a.Aa()}
r.Aa=function(){this.M=i;Wc(this,function(a){!a.M&&a.c()&&a.Aa()})};r.hb=function(){Wc(this,function(a){a.M&&a.hb()});this.xb&&Rc(this.xb);this.M=o};r.g=function(){Q.l.g.call(this);this.M&&this.hb();if(this.xb){this.xb.ia();delete this.xb}Wc(this,function(a){a.ia()});!this.re&&this.j&&Xb(this.j);this.pa=this.ge=this.j=this.pb=this.ga=l};function Wc(a,b,c){a.ga&&Na(a.ga,b,c)}
r.removeChild=function(a,b){if(a){var c=t(a)?a:a.Ba||(a.Ba=":"+(a.Yd.he++).toString(36)),d;if(this.pb&&c){d=this.pb;d=c in d?d[c]:void 0;d=d||l}else d=l;a=d;if(c&&a){Kb(this.pb,c);Pa(this.ga,a);if(b){a.hb();a.j&&Xb(a.j)}c=a;if(c==l)g(Error("Unable to set parent component"));c.pa=l;Q.l.vc.call(c,l)}}if(!a)g(Error("Child is not in parent component"));return a};function R(a,b,c,d,e){Q.call(this,e);this.width=a;this.height=b;this.aa=c||l;this.eb=d||l}v(R,Q);r=R.prototype;r.I=l;r.za=0;r.Fa=0;function Xc(a){return a.aa?new I(a.aa,a.eb):a.K()}r.K=function(){if(this.M)return Mc(this.c());if(u(this.width)&&u(this.height))return new I(this.width,this.height);return l};function Yc(a){var b=a.K();return b?b.width/Xc(a).width:0}function Zc(a,b,c,d,e,f,h,j,k,m,n,q){var p=k.size/2;d=j=="bottom"?d+f-p:j=="center"?d+f/2:d+p;return a.bc(b,c,d,c+e,d,h,k,m,n,q)}r.Rb=ba();
r.Mb=ba();function $c(a,b,c,d,e,f){if(arguments.length==6)this.setTransform(a,b,c,d,e,f);else if(arguments.length!=0)g(Error("Insufficient matrix parameters"));else{this.ba=this.da=1;this.Y=this.ca=this.ma=this.na=0}}r=$c.prototype;r.ha=function(){return new $c(this.ba,this.Y,this.ca,this.da,this.ma,this.na)};r.setTransform=function(a,b,c,d,e,f){if(!u(a)||!u(b)||!u(c)||!u(d)||!u(e)||!u(f))g(Error("Invalid transform parameters"));this.ba=a;this.Y=b;this.ca=c;this.da=d;this.ma=e;this.na=f;return this};
r.scale=function(a,b){this.ba*=a;this.Y*=a;this.ca*=b;this.da*=b;return this};r.translate=function(a,b){this.ma+=a*this.ba+b*this.ca;this.na+=a*this.Y+b*this.da;return this};r.rotate=function(a,b,c){a=ad(a,b,c);b=this.ba;c=this.ca;this.ba=a.ba*b+a.Y*c;this.ca=a.ca*b+a.da*c;this.ma+=a.ma*b+a.na*c;b=this.Y;c=this.da;this.Y=a.ba*b+a.Y*c;this.da=a.ca*b+a.da*c;this.na+=a.ma*b+a.na*c;return this};r.toString=function(){return"matrix("+[this.ba,this.Y,this.ca,this.da,this.ma,this.na].join(",")+")"};
function ad(a,b,c){var d=new $c,e=Math.cos(a);a=Math.sin(a);return d.setTransform(e,a,-a,e,b-b*e+c*a,c-b*a-c*e)}r.va=function(a){if(this==a)return i;if(!a)return o;return this.ba==a.ba&&this.ca==a.ca&&this.ma==a.ma&&this.Y==a.Y&&this.da==a.da&&this.na==a.na};function S(a,b){this.j=a;this.h=b;this.Zb=o}v(S,Sc);r=S.prototype;r.h=l;r.j=l;r.Ac=l;r.c=ca("j");r.addEventListener=function(a,b,c,d){uc(this.j,a,b,c,d)};r.removeEventListener=function(a,b,c,d){wc(this.j,a,b,c,d)};r.g=function(){S.l.g.call(this);Ac(this.j)};function T(a,b,c,d){S.call(this,a,b);this.Z(c);this.md(d)}v(T,S);r=T.prototype;r.fill=l;r.ab=l;r.md=function(a){this.fill=a;this.h.sc(this,a)};r.Ud=ca("fill");r.Z=function(a){this.ab=a;this.h.tc(this,a)};r.r=ca("ab");function bd(a,b,c,d){T.call(this,a,b,c,d)}v(bd,T);function cd(a,b){S.call(this,a,b)}v(cd,S);function dd(a,b){S.call(this,a,b)}v(dd,S);function ed(a,b,c,d){T.call(this,a,b,c,d)}v(ed,T);function fd(a,b,c,d){T.call(this,a,b,c,d)}v(fd,T);function gd(a){S.call(this,l,a);this.ga=[]}v(gd,cd);gd.prototype.clear=function(){if(this.ga.length){this.ga.length=0;this.h.u()}};gd.prototype.appendChild=function(a){this.ga.push(a)};gd.prototype.ka=function(){for(var a=0,b=this.ga.length;a<b;a++)hd(this.h,this.ga[a])};function id(a,b,c,d,e,f,h,j){T.call(this,a,b,h,j);this.Jc=c;this.Lc=d;this.oc=e;this.qc=f;this.i=new O;jd(this);this.lc=new kd(l,b,this.i,h,j)}v(id,bd);
function jd(a){a.i.clear();a.i.moveTo(a.Jc+a.oc*Math.cos(F(0)),a.Lc+a.qc*Math.sin(F(0)));a.i.arcTo(a.oc,a.qc,0,360);a.i.close()}id.prototype.rc=function(a,b){this.Jc=a;this.Lc=b;jd(this);this.lc.ra(this.i)};id.prototype.wc=function(a,b){this.oc=a;this.qc=b;jd(this);this.lc.ra(this.i)};id.prototype.ka=function(a){this.lc.ka(a)};function kd(a,b,c,d,e){T.call(this,a,b,d,e);this.ra(c)}v(kd,ed);kd.prototype.qb=o;kd.prototype.ra=function(a){this.i=a.$a?a:Gc(a);this.qb&&this.h.u()};
kd.prototype.ka=function(a){this.qb=i;a.beginPath();Ec(this.i,function(b,c){switch(b){case 0:a.moveTo(c[0],c[1]);break;case 1:for(var d=0;d<c.length;d+=2)a.lineTo(c[d],c[d+1]);break;case 2:for(d=0;d<c.length;d+=6)a.bezierCurveTo(c[d],c[d+1],c[d+2],c[d+3],c[d+4],c[d+5]);break;case 3:g(Error("Canvas paths cannot contain arcs"));case 4:a.closePath()}})};
function ld(a,b,c,d,e,f,h,j,k,m){T.call(this,l,a,k,m);this.bb=b;this.sd=c;this.se=d;this.td=e;this.te=f;this.Kd=h||"left";this.sb=j;this.j=Sb("DIV",{style:"display:table;position:absolute;padding:0;margin:0;border:0"});this.Bb=Sb("DIV",{style:"display:table-cell;padding: 0;margin: 0;border: 0"});c=this.sd;j=this.td;d=this.se;e=this.te;k=this.Kd;f=this.sb;b=this.j.style;h=Yc(this.h);m=this.h;var n=m.K();m=n?n.height/Xc(m).height:0;if(c==j){b.lineHeight="90%";this.Bb.style.verticalAlign=k=="center"?
"middle":k=="left"?d<e?"top":"bottom":d<e?"bottom":"top";b.textAlign="center";j=f.size*h;b.top=Math.round(Math.min(d,e)*m)+"px";b.left=Math.round((c-j/2)*h)+"px";b.width=Math.round(j)+"px";b.height=Math.abs(d-e)*m+"px";b.fontSize=f.size*0.6*m+"px"}else{b.lineHeight="100%";this.Bb.style.verticalAlign="top";b.textAlign=k;b.top=Math.round(((d+e)/2-f.size*2/3)*m)+"px";b.left=Math.round(c*h)+"px";b.width=Math.round(Math.abs(j-c)*h)+"px";b.height="auto";b.fontSize=f.size*m+"px"}b.fontWeight=f.bold?"bold":
"normal";b.fontStyle=f.ic?"italic":"normal";b.fontFamily=f.Va;c=this.fill;b.color=c.C||c.Sc();this.Bb.innerHTML=this.sd==this.td?Oa(this.bb.split(""),sa).join("<br>"):sa(this.bb);a.c().appendChild(this.j);this.j.appendChild(this.Bb)}v(ld,fd);ld.prototype.md=function(a){this.fill=a;if(this.j)this.j.style.color=a.C||a.Sc()};ld.prototype.Z=ba();ld.prototype.ka=ba();function md(a,b,c,d,e,f,h){S.call(this,a,b);this.Qa=c;this.Ra=d;this.qd=e;this.Uc=f;this.oe=h}v(md,dd);md.prototype.qb=o;
md.prototype.ka=function(a){if(this.Wc){this.qd&&this.Uc&&a.drawImage(this.Wc,this.Qa,this.Ra,this.qd,this.Uc);this.qb=i}else{a=new Image;a.onload=oa(this.Wd,this,a);a.src=this.oe}};md.prototype.Wd=function(a){this.Wc=a;this.h.u()};function nd(a,b){this.size=a;this.Va=b}nd.prototype.bold=o;nd.prototype.ic=o;function od(){};function pd(a,b){this.C=a;this.kb=b||1}v(pd,od);function qd(a,b,c,d,e){R.call(this,a,b,c,d,e)}v(qd,R);r=qd.prototype;r.sc=function(){this.u()};r.tc=function(){this.u()};r.uc=function(){this.u()};function rd(a,b){var c=a.getContext();c.save();var d=b.Ac?b.Ac.ha():new $c,e=d.ma,f=d.na;if(e||f)c.translate(e,f);(d=d.Y)&&c.rotate(Math.asin(d))}r.T=function(){var a=this.ja.T("div",{style:"position:relative;overflow:hidden"});this.j=a;this.ta=this.ja.T("canvas");a.appendChild(this.ta);this.be=this.I=new gd(this);this.je=0;sd(this)};
r.getContext=function(){this.c()||this.T();if(!this.$){this.$=this.ta.getContext("2d");this.$.save()}return this.$};r.K=function(){var a=this.width,b=this.height,c=t(a)&&a.indexOf("%")!=-1,d=t(b)&&b.indexOf("%")!=-1;if(!this.M&&(c||d))return l;var e,f;if(c){e=this.c().parentNode;f=Mc(e);a=parseFloat(a)*f.width/100}if(d){e=e||this.c().parentNode;f=f||Mc(e);b=parseFloat(b)*f.height/100}return new I(a,b)};
function sd(a){Kc(a.c(),a.width,a.height);var b=a.K();if(b){Kc(a.ta,b.width,b.height);a.ta.width=b.width;a.ta.height=b.height;a.$=l}}r.reset=function(){var a=this.getContext();a.restore();var b=this.K();b.width&&b.height&&a.clearRect(0,0,b.width,b.height);a.save()};r.clear=function(){this.reset();this.I.clear();for(var a=this.c();a.childNodes.length>1;)a.removeChild(a.lastChild)};
r.u=function(){if(this.lb)this.jb=i;else if(this.M){this.reset();if(this.aa){var a=this.K();this.getContext().scale(a.width/this.aa,a.height/this.eb)}if(this.za||this.Fa)this.getContext().translate(-this.za,-this.Fa);rd(this,this.I);this.I.ka(this.$);this.getContext().restore()}};
function hd(a,b){if(!(b instanceof ld)){var c=a.getContext();rd(a,b);if(!b.Ud||!b.r)b.ka(c);else{var d=b.fill;if(d)if(d instanceof pd){if(d.kb!=0){c.globalAlpha=d.kb;c.fillStyle=d.C;b.ka(c);c.fill();c.globalAlpha=1}}else{var e=c.createLinearGradient(d.Fe(),d.He(),d.Ge(),d.Ie());e.addColorStop(0,d.Sc());e.addColorStop(1,d.Ee());c.fillStyle=e;b.ka(c);c.fill()}if(d=b.r()){b.ka(c);c.strokeStyle=d.C;d=d.P;if(t(d)&&d.indexOf("px")!=-1)d=parseFloat(d)/Yc(a);c.lineWidth=d;c.stroke()}}a.getContext().restore()}}
r.Q=function(a,b){b=b||this.I;b.appendChild(a);this.M&&!this.je&&!(b!=this.I&&b!=this.be)&&hd(this,a)};r.ac=function(a,b,c,d,e,f,h){a=new id(l,this,a,b,c,d,e,f);this.Q(a,h);return a};r.drawImage=function(a,b,c,d,e,f){a=new md(l,this,a,b,c,d,e);this.Q(a,f);return a};r.bc=function(a,b,c,d,e,f,h,j,k,m){a=new ld(this,a,b,c,d,e,f,h,j,k);this.Q(a,m);return a};r.Ga=function(a,b,c,d){a=new kd(l,this,a,b,c);this.Q(a,d);return a};r.g=function(){this.$=l;qd.l.g.call(this)};
r.Aa=function(){var a=this.K();qd.l.Aa.call(this);if(!a){sd(this);this.dispatchEvent("resize")}this.u()};r.Rb=function(){this.lb=i};r.Mb=function(){this.lb=o;if(this.jb){this.u();this.jb=o}};r.vb=function(a,b){var c=Nb(),d=c.T("div",{style:"position:absolute; visibility:hidden; font-family:"+b.Va+"; font-size:"+b.size+"px;"});document.body.appendChild(d);d.innerHTML=a;var e=d.offsetWidth;c.removeNode(d);return e};function td(a,b){this.Cb=a||1;this.nb=b||ud;this.Xb=oa(this.qe,this);this.kc=pa()}v(td,Sc);td.prototype.enabled=o;var ud=s.window;r=td.prototype;r.Na=l;r.qe=function(){if(this.enabled){var a=pa()-this.kc;if(a>0&&a<this.Cb*0.8)this.Na=this.nb.setTimeout(this.Xb,this.Cb-a);else{this.dispatchEvent(vd);if(this.enabled){this.Na=this.nb.setTimeout(this.Xb,this.Cb);this.kc=pa()}}}};r.start=function(){this.enabled=i;if(!this.Na){this.Na=this.nb.setTimeout(this.Xb,this.Cb);this.kc=pa()}};
r.stop=function(){this.enabled=o;if(this.Na){this.nb.clearTimeout(this.Na);this.Na=l}};r.g=function(){td.l.g.call(this);this.stop();delete this.nb};var vd="tick";function wd(a,b){S.call(this,a,b)}v(wd,cd);wd.prototype.clear=function(){Wb(this.c())};function xd(a,b,c,d){T.call(this,a,b,c,d)}v(xd,bd);xd.prototype.rc=function(a,b){yd(this.h,this.c(),{cx:a,cy:b})};xd.prototype.wc=function(a,b){yd(this.h,this.c(),{rx:a,ry:b})};function zd(a,b,c,d){T.call(this,a,b,c,d)}v(zd,ed);zd.prototype.ra=function(a){a=a.Db()?{}:{d:Ad(a)};yd(this.h,this.c(),a)};function Bd(a,b,c,d){T.call(this,a,b,c,d)}v(Bd,fd);function Cd(a,b){S.call(this,a,b)}v(Cd,dd);function Dd(a,b,c,d,e){R.call(this,a,b,c,d,e);this.Mc={};this.Cc=tb&&!Fb(526);this.Ka=new Nc(this)}var Ed;v(Dd,R);function Fd(a,b,c){b=a.ja.X.createElementNS("http://www.w3.org/2000/svg",b);c&&yd(a,b,c);return b}function yd(a,b,c){for(var d in c)b.setAttribute(d,c[d])}r=Dd.prototype;r.Q=function(a,b){(b||this.I).c().appendChild(a.c())};r.sc=function(a,b){var c=a.c();if(b instanceof pd){c.setAttribute("fill",b.C);c.setAttribute("fill-opacity",b.kb)}else c.setAttribute("fill","none")};
r.tc=function(a,b){var c=a.c();if(b){c.setAttribute("stroke",b.C);var d=b.P;t(d)&&d.indexOf("px")!=-1?c.setAttribute("stroke-width",parseFloat(d)/Yc(this)):c.setAttribute("stroke-width",d)}else c.setAttribute("stroke","none")};r.uc=function(a,b,c,d,e,f){a.c().setAttribute("transform","translate("+b+","+c+") rotate("+d+" "+e+" "+f+")")};
r.T=function(){var a=Fd(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=Fd(this,"g");this.$b=Fd(this,"defs");this.I=new wd(b,this);a.appendChild(this.$b);a.appendChild(b);this.j=a;if(this.aa||this.za||this.Fa){this.c().setAttribute("preserveAspectRatio","none");this.Cc?this.Ub():this.c().setAttribute("viewBox",this.za+" "+this.Fa+" "+(this.aa?this.aa+" "+this.eb:""))}};
r.Ub=function(){if(this.M&&(this.aa||this.za||!this.Fa)){var a=this.K();if(a.width==0)this.c().style.visibility="hidden";else{this.c().style.visibility="";var b=-this.za,c=-this.Fa,d=a.width/this.aa;a=a.height/this.eb;this.I.c().setAttribute("transform","scale("+d+" "+a+") translate("+b+" "+c+")")}}};
r.K=function(){if(!sb)return this.M?Mc(this.c()):Dd.l.K.call(this);var a=this.width,b=this.height,c=t(a)&&a.indexOf("%")!=-1,d=t(b)&&b.indexOf("%")!=-1;if(!this.M&&(c||d))return l;var e,f;if(c){e=this.c().parentNode;f=Mc(e);a=parseFloat(a)*f.width/100}if(d){e=e||this.c().parentNode;f=f||Mc(e);b=parseFloat(b)*f.height/100}return new I(a,b)};r.clear=function(){this.I.clear();Wb(this.$b);this.Mc={}};
r.ac=function(a,b,c,d,e,f,h){a=Fd(this,"ellipse",{cx:a,cy:b,rx:c,ry:d});e=new xd(a,this,e,f);this.Q(e,h);return e};r.drawImage=function(a,b,c,d,e,f){a=Fd(this,"image",{x:a,y:b,width:c,height:d,"image-rendering":"optimizeQuality",preserveAspectRatio:"none"});a.setAttributeNS("http://www.w3.org/1999/xlink","href",e);e=new Cd(a,this);this.Q(e,f);return e};
r.bc=function(a,b,c,d,e,f,h,j,k,m){var n=Math.atan2(e-c,d-b)*180/Math.PI%360;n=Math.round(n*360<0?n+360:n);d=d-b;e=e-c;e=Math.round(Math.sqrt(d*d+e*e));var q=h.size;d={"font-family":h.Va,"font-size":q};q=Math.round(c-q/2+Math.round(q*0.85));var p=b;if(f=="center"){p+=Math.round(e/2);d["text-anchor"]="middle"}else if(f=="right"){p+=e;d["text-anchor"]="end"}d.x=p;d.y=q;if(h.bold)d["font-weight"]="bold";if(h.ic)d["font-style"]="italic";if(n!=0)d.transform="rotate("+n+" "+b+" "+c+")";b=Fd(this,"text",
d);b.appendChild(this.ja.X.createTextNode(a));if(j==l&&sb&&wb){a="black";if(k instanceof pd)a=k.C;j=new C(1,a)}k=new Bd(b,this,j,k);this.Q(k,m);return k};r.Ga=function(a,b,c,d){a=Fd(this,"path",a.Db()?{}:{d:Ad(a)});b=new zd(a,this,b,c);this.Q(b,d);return b};
function Ad(a){var b=[];Ec(a,function(c,d){switch(c){case 0:b.push("M");Array.prototype.push.apply(b,d);break;case 1:b.push("L");Array.prototype.push.apply(b,d);break;case 2:b.push("C");Array.prototype.push.apply(b,d);break;case 3:var e=d[3];b.push("A",d[0],d[1],0,Math.abs(e)>180?1:0,e>0?1:0,d[4],d[5]);break;case 4:b.push("Z")}});return b.join(" ")}
r.vb=function(a,b){var c=Nb(),d=c.T("div",{style:"position:absolute; visibility:hidden; font-family:"+b.Va+"; font-size:"+b.size+"px;"});document.body.appendChild(d);d.innerHTML=a;var e=d.offsetWidth;c.removeNode(d);return e};r.Aa=function(){var a=this.K();Dd.l.Aa.call(this);a||this.dispatchEvent("resize");if(this.Cc){a=this.width;var b=this.height;typeof a=="string"&&a.indexOf("%")!=-1&&typeof b=="string"&&b.indexOf("%")!=-1&&Pc(this.Ka,Gd(),vd,this.Ub);this.Ub()}};
r.hb=function(){Dd.l.hb.call(this);this.Cc&&Qc(this.Ka,Gd(),vd,this.Ub)};r.g=function(){delete this.Mc;delete this.$b;delete this.I;Dd.l.g.call(this)};function Gd(){if(!Ed){Ed=new td(400);Ed.start()}return Ed};function Hd(){return this.j=this.h.ja.c(this.Ba)||this.j}function Id(a,b){this.Ba=a.id;S.call(this,a,b)}v(Id,cd);Id.prototype.c=Hd;Id.prototype.clear=function(){Wb(this.c())};function Jd(a,b,c,d,e,f,h,j){this.Ba=a.id;T.call(this,a,b,h,j);this.Ic=c;this.Kc=d;this.nc=e;this.pc=f}v(Jd,bd);Jd.prototype.c=Hd;Jd.prototype.rc=function(a,b){this.Ic=a;this.Kc=b;Kd(this.c(),a-this.nc,b-this.pc,this.nc*2,this.pc*2)};Jd.prototype.wc=function(a,b){this.nc=a;this.pc=b;Kd(this.c(),this.Ic-a,this.Kc-b,a*2,b*2)};
function Ld(a,b,c,d){this.Ba=a.id;T.call(this,a,b,c,d)}v(Ld,ed);Ld.prototype.c=Hd;Ld.prototype.ra=function(a){Md(this.c(),"path",Nd(a))};function Od(a,b,c,d){this.Ba=a.id;T.call(this,a,b,c,d)}v(Od,fd);Od.prototype.c=Hd;function Pd(a,b){this.Ba=a.id;S.call(this,a,b)}v(Pd,dd);Pd.prototype.c=Hd;function Qd(a,b,c,d,e){R.call(this,a,b,c,d,e);this.Ka=new Nc(this)}v(Qd,R);var Rd=document.documentMode&&document.documentMode>=8;function Sd(a){var b;if(b=t(a)){b=a.length-1;b=b>=0&&a.indexOf("%",b)==b}return b?a:parseFloat(a.toString())+"px"}function U(a){return Math.round((parseFloat(a.toString())-0.5)*100)}function V(a){return Math.round(parseFloat(a.toString())*100)}function Md(a,b,c){if(Rd)a[b]=c;else a.setAttribute(b,c)}
function W(a,b){var c=a.ja.createElement("g_vml_:"+b);c.id="goog_"+Aa++;return c}function Td(a){if(Rd)if(a.lb)a.jb=i;else if(a.M)a.c().innerHTML=a.c().innerHTML}r=Qd.prototype;r.Rb=function(){this.lb=i};r.Mb=function(){this.lb=o;if(this.jb){this.jb=o;Td(this)}};r.Q=function(a,b){(b||this.I).c().appendChild(a.c());Td(this)};
r.sc=function(a,b){var c=a.c();c.fillcolor="";for(var d=0;d<c.childNodes.length;d++){var e=c.childNodes[d];e.tagName=="fill"&&c.removeChild(e)}if(b instanceof pd)if(b.C=="transparent")c.filled=o;else if(b.kb!=1){c.filled=i;d=W(this,"fill");d.opacity=Math.round(b.kb*100)+"%";d.color=b.C;c.appendChild(d)}else{c.filled=i;c.fillcolor=b.C}else c.filled=o;Td(this)};
r.tc=function(a,b){var c=a.c();if(b){c.stroked=i;var d=b.P;if(t(d)&&d.indexOf("px")==-1)d=parseFloat(d);else d*=Yc(this);var e=c.getElementsByTagName("stroke")[0];if(d<1){e=e||W(this,"stroke");e.opacity=d;e.Oe="1px";e.color=b.C;c.appendChild(e)}else{e&&c.removeChild(e);c.strokecolor=b.C;c.strokeweight=d+"px"}}else c.stroked=o;Td(this)};r.uc=function(a,b,c,d,e,f){a=a.c();a.style.left=U(b)+"px";a.style.top=U(c)+"px";if(d||a.rotation){a.rotation=d;a.coordsize=V(e*2)+" "+V(f*2)}};
function Kd(a,b,c,d,e){var f=a.style;f.position="absolute";f.left=U(b)+"px";f.top=U(c)+"px";f.width=V(d)+"px";f.height=V(e)+"px";if(a.tagName=="shape")a.coordsize=V(d)+" "+V(e)}function Ud(a,b){var c=W(a,b),d=Xc(a);Kd(c,0,0,d.width,d.height);return c}try{eval("document.namespaces")}catch(Vd){}r=Qd.prototype;
r.T=function(){var a=this.ja.X;if(!a.namespaces.g_vml_){Rd?a.namespaces.add("g_vml_","urn:schemas-microsoft-com:vml","#default#VML"):a.namespaces.add("g_vml_","urn:schemas-microsoft-com:vml");a.createStyleSheet().cssText="g_vml_\\:*{behavior:url(#default#VML)}"}a=this.width;var b=this.height,c=this.ja.T("div",{style:"overflow:hidden;position:relative;width:"+Sd(a)+";height:"+Sd(b)});this.j=c;var d=W(this,"group"),e=d.style;e.position="absolute";e.left=e.top=0;e.width=this.width;e.height=this.height;
d.coordsize=this.aa?V(this.aa)+" "+V(this.eb):V(a)+" "+V(b);d.coordorigin=this.za!==undefined?V(this.za)+" "+V(this.Fa):"0 0";c.appendChild(d);this.I=new Id(d,this);uc(c,"resize",oa(this.hc,this))};r.hc=function(){var a=Mc(this.c()),b=this.I.c().style;if(a.width){b.width=a.width+"px";b.height=a.height+"px"}else{for(a=this.c();a&&a.currentStyle&&a.currentStyle.display!="none";)a=a.parentNode;a&&a.currentStyle&&Pc(this.Ka,a,"propertychange",this.hc)}this.dispatchEvent("resize")};
r.K=function(){var a=this.c();return new I(a.style.pixelWidth||a.offsetWidth||1,a.style.pixelHeight||a.offsetHeight||1)};r.clear=function(){this.I.clear()};r.ac=function(a,b,c,d,e,f,h){var j=W(this,"oval");Kd(j,a-c,b-d,c*2,d*2);a=new Jd(j,this,a,b,c,d,e,f);this.Q(a,h);return a};r.drawImage=function(a,b,c,d,e,f){var h=W(this,"image");Kd(h,a,b,c,d);Md(h,"src",e);a=new Pd(h,this);this.Q(a,f);return a};
r.bc=function(a,b,c,d,e,f,h,j,k,m){var n=Ud(this,"shape"),q=W(this,"path");b="M"+U(b)+","+U(c)+"L"+U(d)+","+U(e)+"E";Md(q,"v",b);Md(q,"textpathok","true");b=W(this,"textpath");b.setAttribute("on","true");c=b.style;c.fontSize=h.size*Yc(this);c.fontFamily=h.Va;if(f!=l)c["v-text-align"]=f;if(h.bold)c.fontWeight="bold";if(h.ic)c.fontStyle="italic";Md(b,"string",a);n.appendChild(q);n.appendChild(b);a=new Od(n,this,j,k);this.Q(a,m);return a};
r.Ga=function(a,b,c,d){var e=Ud(this,"shape");Md(e,"path",Nd(a));a=new Ld(e,this,b,c);this.Q(a,d);return a};
function Nd(a){var b=[];Ec(a,function(c,d){switch(c){case 0:b.push("m");Array.prototype.push.apply(b,Oa(d,V));break;case 1:b.push("l");Array.prototype.push.apply(b,Oa(d,V));break;case 2:b.push("c");Array.prototype.push.apply(b,Oa(d,V));break;case 4:b.push("x");break;case 3:var e=d[2]+d[3],f=V(d[4]-d[0]*Math.cos(F(e)));e=V(d[5]-d[1]*Math.sin(F(e)));var h=V(d[0]),j=V(d[1]);b.push("ae",f,e,h,j,Math.round(d[2]*-65536),Math.round(d[3]*-65536))}});return b.join(" ")}
r.vb=function(a,b){var c=Nb(),d=c.T("div",{style:"position:absolute; visibility:hidden; font-family:"+b.Va+"; font-size:"+b.size+"px;"});document.body.appendChild(d);d.innerHTML=a;var e=d.offsetWidth;c.removeNode(d);return e};r.Aa=function(){Qd.l.Aa.call(this);this.hc();Td(this)};r.g=function(){this.I=l;Qd.l.g.call(this)};function Wd(a){this.qa=a}function Xd(a,b,c,d,e){var f=a.qa.left,h=a.qa.left+a.qa.width,j=a.qa.top+a.qa.height;a=a.qa.top;var k=0,m=1;d=d-b;e=e-c;for(var n,q,p,A=0;A<4;A++){if(A===0){n=-d;q=-(f-b)}if(A===1){n=d;q=h-b}if(A===2){n=e;q=j-c}if(A===3){n=-e;q=-(a-c)}p=q/n;if(n===0&&q<0)break;if(n<0)if(p>m)break;else{if(p>k)k=p}else if(n>0)if(p<k)break;else if(p<m)m=p}return[b+k*d,c+k*e,b+m*d,c+m*e]};function Yd(){this.dc=l;this.Zd=this.Oa=this.Pa=o}Yd.prototype.Pb=function(a){this.min=a;this.Pa=i};Yd.prototype.Ob=function(a){this.max=a;this.Oa=i};function Zd(a,b){a.dc=b}function $d(a){if(!a.N){a.N=i;a.Yc()}}function ae(a,b){return a.dc?a.dc(a.fb(b)):String(a.fb(b))}Yd.prototype.va=function(a,b){return this.S(a,b)===0};function be(a){this.L=[];this.Vb=[];this.Ta=a}function ce(a,b){return b>=0?new B(new Date(a.L[b])):new B(new Date(0))};function de(){Yd.call(this);this.ya=new B(1990,6,22,8,0,0,0);this.Ma=this.ya.getHours();this.mb=this.ya.getMinutes();this.od=this.ya.getSeconds();this.la=new B(1990,6,22,17,0,0,0);this.rb=this.la.getHours();this.cc=this.la.getMinutes();this.Rd=this.la.getSeconds();this.min=new B(new Date);this.min.add(new y(0,0,-1));this.max=new B(new Date);this.Ea=new be(this)}v(de,Yd);r=de.prototype;
r.Yc=function(){for(var a=this.Ea,b=new B(2007,0,1,a.Ta.ya.getHours(),a.Ta.ya.getMinutes(),a.Ta.ya.getSeconds()),c=ee(a.Ta,b,new B(new Date(0))),d=new B(new Date),e=new y(0,0,1),f=0;b.getTime()<d.getTime();){if(!fe(a.Ta,b)){a.L[f]=b.getTime();a.Vb[f]=c;c+=a.Ta.oa;f++}b.add(e)}};
r.Pb=function(a){a=new B(a);ge(this,a)||(a=he(this,a));de.l.Pb.call(this,a);this.oa=(this.la.getHours()-this.ya.getHours()+(this.la.getMinutes()-this.ya.getMinutes())/60)*36E5;this.Hb=this.oa*5;this.Ce=ie(this,this.min);this.Me=ie(this,this.min).getTime()-this.min.getTime();this.De=je(this,this.min);this.Ne=ke(this,this.min);this.Le=Ka(this.min);this.ce=this.min.getDate();this.fe=this.min.getFullYear();this.de=this.min.getMonth();this.ee=this.min.getTime()};
r.Ob=function(a){a=new B(a);ge(this,a)||(a=he(this,a));de.l.Ob.call(this,a)};r.Pc=function(){return this.normalize(new B(8888,11,30,12,0,0,333))};
r.nd=function(a){var b=(this.max.getTime()-this.ee)/a;a=Math.floor(b/315576E5);b-=a*315576E5;var c=Math.floor(b/26298E5);b-=c*26298E5;var d=Math.floor(b/864E5);b-=d*864E5;var e=Math.floor(b/36E5);b-=e*36E5;b=Math.floor(b/6E4);var f=new y(0);if(a>1)f.w=a+1;else if(a>1||a===1&&c>0)f.t=18;else if(c>6||c===6&&d>0)f.w=1;else if(c>3||c===3&&d>0)f.t=6;else if(c>1||c===1&&d>0)f.t=3;else if(d>14||d===14&&e>0||c>0)f.t=1;else if(d>5||d===5&&e>0)f.n=10;else if(d>2||d===2&&e>0)f.n=5;else if(d>1||d===1&&e>0)f.n=
2;else if(e>6||e===6&&b>0||d===1)f.n=1;else if(e>2||e===2&&b>0)f.z=6;else if(e>1||e===1&&b>0)f.z=2;else if(b>=30||e===1)f.z=1;else f.A=b>=15?30:b>=10?15:b>=5?10:b>=1?5:1;this.D=f};function je(a,b){var c=new y(0,0,5-b.getDay()),d=new B(b);d.add(c);d.setHours(a.la.getHours());d.setMinutes(a.la.getMinutes());d.setSeconds(a.la.getSeconds());d.setMilliseconds(a.la.getMilliseconds());return d}function ie(a,b){return new B(b.getFullYear(),b.getMonth(),b.getDate(),a.rb,a.cc,a.Rd,a.la.getMilliseconds())}
function ke(a,b,c){c=c||je(a,b);return Math.floor((c.getTime()-b.getTime())/864E5)*a.oa}function le(a,b){var c=b.getHours();return c>a.rb||c===a.rb&&b.getMinutes()>a.cc?i:o}function ge(a,b){var c=b.getHours();return!(c<a.Ma||c===a.Ma&&b.getMinutes()<a.mb||le(a,b)||fe(a,b))}function fe(a,b){var c=b.getDay();return c===6||c===0}
function he(a,b){if(ge(a,b))return b;var c=new B(b),d=o;if(fe(a,c)||c.getDay()===5&&le(a,c)){d=new y(0,0,0,0,0,0);d.n=c.getDay()===0?1:7-Math.abs(1-c.getDay());c.add(d);d=i}le(a,c)&&!d&&c.add(new y(0,0,1,0,0,0));c.setHours(a.Ma);c.setMinutes(a.mb);c.setSeconds(0);c.setMilliseconds(0);return c}
function ee(a,b,c){if(b.rd>-1)return b.rd;var d=c.getTime(),e=b.getTime();if(e===d)return 0;var f=c||new Date,h;if(h=b.getDate()==f.getDate()){f=f||new Date;if(h=b.getMonth()==f.getMonth()){f=f||new Date;h=b.getFullYear()==f.getFullYear()}h=h}if(h)a=e-d;else{var j=ie(a,c);d=(j||ie(a,c)).getTime()-c.getTime();f=je(a,c);h=ke(a,c,f);var k=new B(b.getFullYear(),b.getMonth(),b.getDate(),a.Ma,a.ya.getMinutes(),a.od,0),m=k.getTime();e=e-m;if(Ka(b)===Ka(c)&&b.getFullYear()===c.getFullYear())a=d+a.oa*Math.floor((m-
j.getTime())/864E5)+e;else{c=new y(0,0,1-k.getDay(),0,0,0);k=new B(k.getFullYear(),k.getMonth(),k.getDate(),a.Ma,a.mb,a.od,0);k.add(c);a=d+h+Math.floor((m-f.getTime())/6048E5)*a.Hb+Math.floor((m-k.getTime())/864E5)*a.oa+e}}return b.rd=a}r.normalize=function(a){var b=new B(new Date(a));ge(this,a)||(b=he(this,b));var c=Math.abs(Ua(this.Ea.L,b.getTime())+1)-1;a=ce(this.Ea,c);c=this.Ea.Vb[c];if(!(c>-1))return ee(this,b,new B(new Date(0)));return c+ee(this,b,a)};
r.fc=function(){var a=new B(this.fe,this.de,this.ce,this.Ma,this.mb,0,0),b=new y(0,0,0,0,0,0);if(this.D.w>0){a.setMonth(0);a.setDate(1);b.w=1}else if(this.D.t>0){a.setDate(1);b.t=1}else if(this.D.n>0)b.n=1;else if(this.D.z>0){a.setHours(this.min.getHours());a.setMinutes(0);b.z=1}else{a.setMinutes(this.D.A*Math.round(this.min.getMinutes()/this.D.A));b.A=this.D.A}a.va(this.min)||a.add(b);return this.normalize(a)};
r.Xc=function(a){a=this.fb(a);new B(a);if(this.D.w>0||this.D.t>0){this.D.w>0&&a.setMonth(0);a.setDate(1);a.add(this.D);return this.normalize(he(this,a))}return this.normalize(me(this,a,this.D))};r.fb=function(a){var b=Math.abs(Ua(this.Ea.Vb,a)+1)-1,c=ce(this.Ea,b);if(a===0)return c;return ne(this,c,a-this.Ea.Vb[b])};function me(a,b,c){var d=c.n*a.oa;x(c.w==0&&c.t==0);return ne(a,b,d+((((c.n*24+c.z)*60+c.A)*60+c.O)*1E3-864E5*c.n))}
function ne(a,b,c){var d=b.getTime(),e=ie(a,b).getTime()-b.getTime();b=ke(a,b);d+=e+b/a.oa*864E5;c-=e+b;d+=Math.floor(c/a.Hb)*6048E5;c-=Math.floor(c/a.Hb)*a.Hb;d+=(24-(a.rb+a.cc/60))*36E5+1728E5+(a.Ma+a.mb/60)*36E5;d+=Math.floor(c/a.oa)*864E5;c-=Math.floor(c/a.oa)*a.oa;d+=c;return new B(new Date(d))}r.S=function(a,b){return a.getTime()>b.getTime()?1:a.getTime()<b.getTime()?-1:0};r.fd=aa();r.gd=aa();r.ec=function(){var a=new B(new Date);a.add(new y(0,0,-1));return[a,new B(new Date)]};function oe(a){this.f=new X(a,l,l,l);this.i=new O;this.Sa=new O;this.ve=new X(a,l,l,l)}function pe(a,b){a.f.Z(b)}
oe.prototype.u=function(a,b,c){this.rect=a;this.B=b;this.q=c;this.i.clear();this.Sa.clear();for(a=0;a<this.B.s.length;a++){this.i.moveTo(this.B.s[a].fa[0],this.rect.top);this.i.lineTo(this.B.s[a].fa[0],this.rect.top+this.rect.height)}for(a=0;a<this.q.s.length;a++)if(this.q.cb!==this.q.s[a]){this.i.moveTo(this.rect.left,this.q.s[a].fa[1]);this.i.lineTo(this.rect.left+this.rect.width,this.q.s[a].fa[1])}else{this.Sa.moveTo(this.rect.left,this.q.cb.fa[1]);this.Sa.lineTo(this.rect.left+this.rect.width,
this.q.cb.fa[1])}this.Vd.ra(this.i);this.Sa.Db()&&this.Sa.moveTo(0,0);this.ue.ra(this.Sa)};oe.prototype.Da=function(a){this.Vd=a.Ga(this.i,this.f.r(),l);this.ue=a.Ga(this.Sa,this.ve.r(),l)};function X(a,b,c,d){this.pa=a;this.ab=!a&&!b?new C(1,"#000000"):b;this.sb=!a&&!c?new nd(13,"Arial"):c;this.Rc=!a&&!d?"#000000":d}X.prototype.r=function(){if(this.ab)return this.ab;return this.pa.r()};X.prototype.Z=function(a){this.ab=a};function qe(a){if(a.sb)return a.sb;return qe(a.pa)}function re(a){if(a.Rc)return a.Rc;return re(a.pa)};function se(a,b){this.N=o;this.La=this.ld=i;this.ke=o;this.f=new X(l,l,l,l);this.id=a;this.o=b;this.Yb=this.o[this.o.length-1];this.ad=this.o[this.o.length-1];this.Be=this.Je=o}v(se,J);r=se.prototype;r.Z=function(a){this.f.Z(a)};r.wb=function(a,b){var c,d,e=a?te(this,a,0,this.o)-1:0,f=b?te(this,b,0,this.o):this.o.length-1;for(e=e<=0?0:e-1;e<=f;e++){var h=this.o[e][1];if(!c||this.xa.axis.S(h,c)<0)c=h;if(!d||this.xa.axis.S(h,d)>0)d=h}return[c,d]};
r.u=function(a,b,c,d){if(!this.N){this.ib(a,b,c,d);this.N=i}if(this.La&&this.o.length>0){ue(this);this.i.clear();a=[];b=[];c=0;for(d=this.o.length;c<d;c++){if(!this.Ib||this.xa.axis.S(this.o[c][1],this.Ib[1])<0)this.Ib=this.o[c];if(!this.Gb||this.xa.axis.S(this.o[c][1],this.Gb[1])>0)this.Gb=this.o[c];b[c]=this.o[c][0]}b=ve(this.wa,b);for(c=0;c<b.length;c++)if(b[c])a[a.length]=new H(b[c],Y(this.xa,this.o[c][1]));b=this.$;c=new O;var e=o,f=[];f=a[0];var h;h=b.qa.contains(f)?o:i;for(var j=1;j<a.length;j++){d=
a[j];if(b.qa.contains(d))if(h){f=Xd(b,d.x,d.y,f.x,f.y);c.moveTo(f[2],f[3]);c.lineTo(d.x,d.y);h=o;e=i}else if(e)c.lineTo(d.x,d.y);else{c.moveTo(f.x,f.y);c.lineTo(d.x,d.y);e=i}else{if(h){f=Xd(b,f.x,f.y,d.x,d.y);c.moveTo(f[0],f[1]);b.qa.contains(new H(f[2],f[3]))?c.lineTo(f[2],f[3]):c.moveTo(f[2],f[3])}else{c.moveTo(f.x,f.y);f=Xd(b,f.x,f.y,d.x,d.y);c.lineTo(f[2],f[3]);c.moveTo(d.x,d.y)}h=e=i}f=d}this.i=c;this.gb.ra(this.i);if(this.ke){this.bd.u(Y(this.wa,this.Ib[0]),Y(this.xa,this.Ib[1]));this.Vc.u(Y(this.wa,
this.Gb[0]),Y(this.xa,this.Gb[1]));this.$c.u(Y(this.wa,this.ad[0]),Y(this.xa,this.ad[1]))}}};function ue(a){a.ld&&a.zc.u(Y(a.wa,a.Yb[0]),Y(a.xa,a.Yb[1]))}
r.ib=function(a,b,c,d){this.$=d;this.i=new O;this.h=a;this.Xd=new C(this.f.r().P*3,this.f.r().C);b=ib(eb(this.f.r().C),0.5);this.Pd=new C(this.f.r().P,gb(b[0],b[1],b[2]));this.gb=a.Ga(this.i,this.f.r(),l);this.zc=new Z(a,this.f);this.zc.Z(new C(2,this.f.r().C));this.Vc=new Z(a,this.f);this.Vc.Z(new C(1,"#007F00"));this.bd=new Z(a,this.f);this.bd.Z(new C(1,"#FA0B0B"));this.$c=new Z(a,this.f);this.$c.Z(new C(1,"#0000FF"))};
function te(a,b,c,d){var e=Math.abs(Ua(d,b,function(h,j){return a.wa.axis.S(h,j[c])})+1);e=e>=d.length?d.length-1:e;if(e>0){var f=a.wa.axis.normalize(b);b=f-a.wa.axis.normalize(d[e-1][c]);d=a.wa.axis.normalize(d[e][c])-f;if(b<d)e-=1}return e}r.g=function(){se.l.g.call(this);if(this.N){this.i.clear();Xb(this.gb.c());this.zc.ia()}};
function Z(a,b){this.f=new X(b,l,l,l);this.Xd=new C(this.f.r().P*3,this.f.r().C);var c=ib(eb(this.f.r().C),0.5);this.Pd=new C(this.f.r().P,gb(c[0],c[1],c[2]));this.h=a;this.N=o;this.La=i}v(Z,J);Z.prototype.Z=function(a){this.f.Z(a)};Z.prototype.u=function(a,b){if(!this.N){this.ib();this.N=i}this.Wb.rc(a,b)};Z.prototype.ib=function(){this.Sd=new pd(this.f.r().C);this.Wb=this.h.ac(-10,-10,Number(this.f.r().P),Number(this.f.r().P),this.f.r(),this.Sd)};
Z.prototype.g=function(){if(this.N){this.Wb.wc(0,0);Xb(this.Wb.c())}};function we(a,b,c){this.e=c;this.axis=a;this.s=[]}v(we,J);
we.prototype.u=function(a){this.a=a;this.R=0;if(this.e===$){this.H=[this.a.left,this.a.top];this.J=[this.a.left+this.a.width,this.a.top];this.R=this.J[0]-this.H[0]}if(this.e===xe){this.H=[this.a.left,this.a.top];this.J=[this.a.left+this.a.width,this.a.top];this.R=this.J[0]-this.H[0]}if(this.e===ye){this.H=[this.a.left,this.a.top+this.a.height];this.J=[this.a.left+this.a.width,this.a.top+this.a.height];this.R=this.J[0]-this.H[0]}if(this.e===ze){this.H=[this.a.left,this.a.top+this.a.height];this.J=
[this.a.left+this.a.width,this.a.top+this.a.height];this.R=this.J[0]-this.H[0]}if(this.e===Ae){this.H=[this.a.left,this.a.top];this.J=[this.a.left,this.a.top+this.a.height];this.R=this.J[1]-this.H[1]}if(this.e===Be){this.H=[this.a.left+this.a.width,this.a.top];this.J=[this.a.left+this.a.width,this.a.top+this.a.height];this.R=this.J[1]-this.H[1]}if(this.e===Ce){this.H=[this.a.left+this.a.width,this.a.top];this.J=[this.a.left+this.a.width,this.a.top+this.a.height];this.R=this.J[1]-this.H[1]}if(this.e===
De){this.H=[this.a.left,this.a.top];this.J=[this.a.left,this.a.top+this.a.height];this.R=this.J[1]-this.H[1]}this.Jb=this.axis.normalize(this.axis.min);this.ed=this.axis.normalize(this.axis.max);this.jd();this.kd()};function Ee(a){return a.e===ye||a.e===xe||a.e===$||a.e===ze}function Fe(a){return a.e===Ae||a.e===Ce||a.e===Be||a.e===De}
function ve(a,b){var c=[],d=Math.abs(Ua(b,a.axis.min,function(f,h){return a.axis.S(f,h)})+1);d=d<=0?0:d-1;var e=Math.abs(Ua(b.slice(d,b.length),a.axis.max,function(f,h){return a.axis.S(f,h)})+1)+d;e=e>=b.length-1?b.length-1:e+1;for(d=d;d<=e;d++)c[d]=Y(a,b[d]);return c}function Y(a,b){return Ge(a,a.axis.normalize(b))}
function Ge(a,b){b=(b-a.Jb)/(a.ed-a.Jb);if(Ee(a))return Math.floor(a.R*b+a.a.left);else if(Fe(a))return Math.floor(a.height-a.R*b-(a.height-(a.a.top+a.a.height)));else g("INVALID_ORIENTATION "+a.e)}we.prototype.g=function(){we.l.g.call(this)};var ye=0,xe=1,Ae=2,Ce=3,$=4,ze=5,Be=6,De=7;function He(a,b){we.call(this,a,l,b);this.W=0}v(He,we);r=He.prototype;r.kd=da;r.ub=function(){return 0};r.tb=function(){return 0};r.g=function(){He.l.g.call(this)};r.Da=ba();r.jd=ba();function Ie(){Yd.call(this);this.min=0;this.max=1}v(Ie,Yd);r=Ie.prototype;r.nd=function(a){a=(this.max-this.min)/a;var b=Math.abs(this.max-this.min)/10,c=0;if(b<1)for(b=b;b<1;b*=10)c++;else for(b=b;b>=10;b/=10)c--;this.D=Math.ceil(a*Math.pow(10,c))/Math.pow(10,c)};r.fb=aa();r.Pc=function(){return this.normalize(this.max)*-10.1};r.Yc=da;r.normalize=function(a){return Number(a)};r.fc=function(){return this.normalize(this.min)};r.Xc=function(a){return a+this.D};
r.fc=function(){return Math.ceil(this.min/this.D)*this.D};r.fd=function(a,b,c){return a+(c&&b?c-b:this.max-this.min)*0.05};r.gd=function(a,b,c){return a-(c&&b?c-b:this.max-this.min)*0.05};r.S=function(a,b){return a>b?1:b>a?-1:0};r.ec=function(){return[0,1]};function Je(a,b,c,d,e,f){this.ae=b;this.N=o;this.f=e;this.Fc=f;this.bb=a;this.Qa=b.left;this.Ra=b.top;this.P=b.width;this.zb=b.height;this.db=c;this.jc=l;this.fa=[];if(this.db===Ke){this.fa[0]=this.Qa+this.P/2;this.fa[1]=this.Ra}else if(this.db===Le){this.fa[0]=this.Qa+this.P;this.fa[1]=this.Ra+this.zb/2}this.Sb=d}v(Je,J);
Je.prototype.Da=function(a){this.N=i;this.h=a;this.xc=new pd(re(this.f));this.yc=new C(0,re(this.f));var b=this.Fc===$||this.Fc===xe?"bottom":"top";if(this.db===Ke)this.jc=b==="bottom"?Zc(a,this.bb,this.Qa,this.Ra+this.Sb*1.1,this.P,this.zb-this.Sb,"center",b,qe(this.f),this.yc,this.xc):Zc(a,this.bb,this.Qa,this.Ra,this.P,this.zb-this.Sb,"center",b,qe(this.f),this.yc,this.xc);else if(this.db===Le)this.jc=Zc(a,this.bb,this.Qa,this.Ra,this.P-this.Sb-3,this.zb,"right","middle",qe(this.f),this.yc,this.xc);
else g("INVALID_ORIENTATION "+this.db)};Je.prototype.g=function(){Je.l.g.call(this);this.N&&Xb(this.jc.c())};function Me(a,b,c){we.call(this,a,b,c);this.f=new X(b,l,l,l);this.Eb=new X(this.f,l,l,l);this.W=7;this.H=[];this.J=[];this.s=[];this.cb=l;this.V=0;this.F=new O}v(Me,we);r=Me.prototype;r.Da=function(a){this.Wa=a;this.height=this.Wa.K().height;this.Qd=this.Wa.Ga(this.F,this.f.r(),l);this.i=new O;this.gb=this.Wa.Ga(this.i,this.f.r(),l)};
r.jd=function(){for(var a=0;a<this.s.length;a++)this.s[a].ia();this.s.length=0;this.cb=l;if(Ee(this))this.V=this.ub()*1.1;else if(Fe(this))this.V=this.tb()*1.1;else g("INVALID_ORIENTATION "+this.e);this.axis.nd(Math.floor(this.R/this.V));a=l;for(var b=Ne(this),c=0;c<b.length;c++)if(Ee(this)){a=new P(Ge(this,b[c])-this.V/2,this.a.top,this.V,this.a.height);this.s[c]=new Je(ae(this.axis,b[c]),a,Ke,this.W,this.Eb,this.e);if(Math.abs(Math.abs(b[c])-Number(0))<=1.0E-13)this.cb=this.s[this.s.length-1]}else if(Fe(this)){if(this.e===
Ae)a=new P(this.a.left,Ge(this,b[c])-this.V/2,this.a.width,this.V);if(this.e===Be)a=new P(0,Ge(this,b[c])-this.V/2,this.a.width,this.V);if(this.e===Ce)a=new P(this.a.left,Ge(this,b[c])-this.V/2,this.a.width,this.V);if(this.e===De)a=new P(this.a.left,Ge(this,b[c])-this.V/2,this.a.width,this.V);this.s[c]=new Je(ae(this.axis,b[c]),a,Le,this.W,this.Eb,this.e);if(Math.abs(Math.abs(b[c])-Number(0))<=1.0E-13)this.cb=this.s[this.s.length-1]}else g("INVALID_ORIENTATION "+this.e)};
r.kd=function(){this.i.clear();this.F.clear();this.i.moveTo(this.H[0],this.H[1]);this.i.lineTo(this.J[0],this.J[1]);this.gb.ra(this.i);for(var a=0;a<this.s.length;a++){this.s[a].Da(this.Wa);var b=this.s[a].ae;if(this.e===$){this.F.moveTo(b.left+b.width/2,b.top);this.F.lineTo(b.left+b.width/2,b.top+this.W)}if(this.e===xe){this.F.moveTo(b.left+b.width/2,b.top);this.F.lineTo(b.left+b.width/2,b.top+this.W)}if(this.e===ye){this.F.moveTo(b.left+b.width/2,b.top+b.height);this.F.lineTo(b.left+b.width/2,b.top+
b.height-this.W)}if(this.e===ze){this.F.moveTo(b.left+b.width/2,b.top+b.height);this.F.lineTo(b.left+b.width/2,b.top+b.height-this.W)}if(this.e===Ae){this.F.moveTo(b.left,b.top+b.height/2);this.F.lineTo(b.left+this.W,b.top+b.height/2)}if(this.e===De){this.F.moveTo(b.left,b.top+b.height/2);this.F.lineTo(b.left+this.W,b.top+b.height/2)}if(this.e===Be){this.F.moveTo(b.left+b.width,b.top+b.height/2);this.F.lineTo(b.left+b.width-this.W,b.top+b.height/2)}if(this.e===Ce){this.F.moveTo(b.left+b.width,b.top+
b.height/2);this.F.lineTo(b.left+b.width-this.W,b.top+b.height/2)}}this.Qd.ra(this.F)};function Ne(a){var b=[],c=a.axis.fc(),d=a.axis.normalize(a.axis.max);for(c=c;c<=d;c=a.axis.Xc(c))b[b.length]=c;return b}r.ub=function(){var a=[];a=this.axis.D?Ne(this):[this.axis.Pc()];for(var b=this.Wa.vb(ae(this.axis,a[0]),qe(this.Eb)),c=1;c<a.length;c++){var d=this.Wa.vb(ae(this.axis,a[c]),qe(this.Eb));if(d>b)b=d}return b};r.tb=function(){return qe(this.f).size};
r.g=function(){Me.l.g.call(this);if(this.Zd){this.i.clear();Xb(this.gb.c());for(var a=0;a<this.s.length;a++)this.s[a].ia()}};function Oe(a,b,c,d){this.N=o;this.me=this.le=i;this.ta=t(a)?document.getElementById(a):a;a=b[0];b=b[1];b=G?new Qd(a,b,void 0,void 0,void 0):tb&&(!Fb("420")||ub)?new qd(a,b,void 0,void 0,void 0):new Dd(a,b,void 0,void 0,void 0);b.T();this.h=b;b=this.h.I;b.Ac=ad(F(0),0,0).translate(0.5,0.5);b.h.uc(b,0.5,0.5,0,0,0);this.f=new X(l,l,l,l);this.m=c?new c:new de;this.v=d?new d:new Ie;this.p=[];this.B=this.le?new Me(this.m,this.f,$):new He(this.m,$);this.q=this.me?new Me(this.v,this.f,Be):new He(this.v,
Be);this.gc=new oe(this.f)}v(Oe,Sc);
Oe.prototype.u=function(){var a=this.m.va(this.m.max,this.m.min),b=this.v.va(this.v.min,this.v.max);if(!(this.m.Pa&&this.m.Oa)||a){for(var c,d,e,f,h=0;h<this.p.length;h++){e=this.p[h].La&&this.p[h].o.length>0?this.p[h].o[0][0]:l;f=this.p[h].La&&this.p[h].o.length>0?this.p[h].o[this.p[h].o.length-1][0]:l;if(e!==l&&(c===undefined||this.m.S(e,c)<0))c=e;if(f!==l&&(d===undefined||this.m.S(f,d)>0))d=f}c=c===undefined||d===undefined||this.m.va(c,d)?this.m.ec():[c,d];if(!this.m.Pa||a){this.m.Pb(c[0]);this.m.Pa=
o}if(!this.m.Oa||a){this.m.Ob(c[1]);this.m.Oa=o}}if(!(this.v.Pa&&this.v.Oa)||b){a=this.wb();if(!this.v.Pa||b){this.v.Pb(a[0]);this.v.Pa=o}if(!this.v.Oa||b){this.v.Ob(a[1]);this.v.Oa=o}}$d(this.v);$d(this.m);if(!this.N){this.ib();this.N=i}this.h.Rb();this.m.D=l;this.v.D=l;b=Math.floor((this.B.tb()+this.B.W)*1.05);a=Math.floor((this.q.ub()+this.q.W)*1.1);c=Math.floor(this.q.tb()*1.05/2);d=Math.floor(this.B.ub()*1.05/2);e=new H;f=new H;h=new H;var j=this.h.K().width-2*d;if(this.q.e===Ae||this.q.e===
Be)j-=a;var k=this.h.K().height-2*c;if(this.B.e===ye||this.B.e===$)k-=b;if(this.q.e===Ae){e.x=d;e.y=c;h.x=j+d;f.x=d}if(this.q.e===Be){e.x=a;e.y=c;h.x=0;f.x=a}if(this.q.e===Ce){e.x=d;e.y=c;h.x=d+j-a;f.x=d}if(this.q.e===De){e.x=d;e.y=c;h.x=d;f.x=d}if(this.B.e===$){f.y=k+c;h.y=c;e.y=c}if(this.B.e===ye){f.y=0;h.y=b;e.y=b}if(this.B.e===xe){f.y=0;h.y=0;e.y=0}if(this.B.e===ze){f.y=k-b+c;h.y=c;e.y=c}this.mc=new P(e.x,e.y,j,k);this.Od=new P(h.x,h.y,a,k);this.Nd=new P(f.x,f.y,j,b);this.$.qa=this.mc;this.q.u(this.Od);
this.B.u(this.Nd);this.gc.u(this.mc,this.B,this.q);for(b=0;b<this.p.length;b++)this.p[b].u(this.h,this.B,this.q,this.$);this.h.Mb()};
Oe.prototype.ib=function(){var a=this;Vc(this.h,this.ta);this.gc.Da(this.h);this.B.Da(this.h);this.q.Da(this.h);this.$=new Wd(this.mc);uc(this.ta,"mousemove",function(b){var c=b.clientX,d=a.ta,e=new H;if(d.nodeType==1)if(d.getBoundingClientRect){var f=Ic(d);e.x=f.left;e.y=f.top}else{f=Yb(Nb(d));var h,j=Pb(d),k=Hc(d,"position"),m=sb&&j.getBoxObjectFor&&!d.getBoundingClientRect&&k=="absolute"&&(h=j.getBoxObjectFor(d))&&(h.screenX<0||h.screenY<0),n=new H(0,0),q;h=j?j.nodeType==9?j:Pb(j):document;if(q=
G)q=Nb(h).X.compatMode!="CSS1Compat";q=q?h.body:h.documentElement;if(d!=q)if(d.getBoundingClientRect){h=Ic(d);d=Yb(Nb(j));n.x=h.left+d.x;n.y=h.top+d.y}else if(j.getBoxObjectFor&&!m){h=j.getBoxObjectFor(d);d=j.getBoxObjectFor(q);n.x=h.screenX-d.screenX;n.y=h.screenY-d.screenY}else{h=d;do{n.x+=h.offsetLeft;n.y+=h.offsetTop;if(h!=d){n.x+=h.clientLeft||0;n.y+=h.clientTop||0}if(tb&&Hc(h,"position")=="fixed"){n.x+=j.body.scrollLeft;n.y+=j.body.scrollTop;break}h=h.offsetParent}while(h&&h!=d);if(rb||tb&&
k=="absolute")n.y-=j.body.offsetTop;for(h=d;(h=Jc(h))&&h!=j.body&&h!=q;){n.x-=h.scrollLeft;if(!rb||h.tagName!="TR")n.y-=h.scrollTop}}e.x=n.x-f.x;e.y=n.y-f.y}else{e.x=d.clientX;e.y=d.clientY}c=c-e.x;e=a.B;f=e.ed-e.Jb;var p;if(Ee(e))p=(c-e.a.left)/e.R;else if(Fe(e))p=(e.height-(c+(e.height-(e.a.top+e.a.height))))/e.R;else g("INVALID_ORIENTATION "+e.e);if(p<0)p=0;else if(p>1)p=1;p=e.axis.fb(e.Jb+p*f);a.h.Rb();for(c=0;c<a.p.length;c++){e=a.p[c];if(e.ld){e.Yb=e.o[te(e,p,0,e.o)];e.La&&ue(e)}}a.h.Mb();a.dispatchEvent(b)},
i)};Oe.prototype.wb=function(){for(var a,b,c,d,e=0;e<this.p.length;e++){c=this.p[e].La?this.p[e].wb(this.m.min,this.m.max)[0]:l;d=this.p[e].La?this.p[e].wb(this.m.min,this.m.max)[1]:l;if(c!==l&&(this.v.S(c,a)<0||a===undefined))a=c;if(d!==l&&(this.v.S(d,b)>0||b===undefined))b=d}return a===undefined||b===undefined||this.v.va(a,b)?this.v.ec():[this.v.gd(a,a,b),this.v.fd(b,a,b)]};
function Pe(a,b){a:for(var c=b.id,d=0;d<a.p.length;d++)if(a.p[d].id===c){c=a;d=d;c.p[d].ia();Sa(c.p,d,1);break a}b.wa=a.B;b.xa=a.q;a.p[a.p.length]=b}var Ke=0,Le=1;function Qe(a){a=new Oe(a,[400,300]);pe(a.gc,new C(1,"#eee"));a.B.e=$;a.q.e=Ce;var b=new Za(7);Zd(a.m,oa(b.Td,b));Zd(a.v,function(e){return e.toFixed(2)});b=new B(2010,7,5,8,0,0,0);var c=new B(2010,7,5,12,0,0,0),d=new B(2010,7,5,16,0,0,0);Pe(a,new se("test",[[b,0],[c,10],[d,-5]]));Pe(a,new se("test2",[[b,5],[c,1],[d,10]]));a.u()}var Re="scottlogic.chart.examples.example1.load".split("."),Se=s;!(Re[0]in Se)&&Se.execScript&&Se.execScript("var "+Re[0]);
for(var Te;Re.length&&(Te=Re.shift());)if(!Re.length&&Qe!==undefined)Se[Te]=Qe;else Se=Se[Te]?Se[Te]:Se[Te]={};
</script>
</head>
<body onload="scottlogic.chart.examples.example1.load('canvas')">
<div id="canvas"></div>
</body>
</html>
